+ 1
Whatâs the problem? (BMI Calculator) [Fixed]
import math Height=float(input()) Weight=float(input()) BMI=Weight//math.pow(Height,2) if BMI > 30: print('Obesity') elif BMI > 25: print('Overweight') elif BMI > 18.5: print('Normal') else: print('Underweight') Output: Underweight (Always)
3 Answers
+ 3
Description says:
First input is weight and second input is for height.
+ 3
Check the formula for bmi again and compare "/" vs. "//".
+ 2
Thank you! The problem was that the input order was reversed.