0
Whats wrong with this code that in project of bmi doesn't accept my code!!! i tried it in other ide there is no problem it works
height = 1.9 weight = 85 bmi = float(weight)/float(height**2) i = bmi if i < 18.5: print("under weight") elif i >= 18.5 and i < 25: print("normal") elif i >= 25 and i < 30: print("overweight") elif i ==30 or i > 30: print("obesity")
3 Réponses
+ 3
Jorji Sali ,Instead of writing
height = 1.9
weight = 85
Write
weight = input()
height = input()
And write Obesity, Normal ,etc
With first letter in uppercase
Hope It Helps You 😊
0
Jorji Sali, the height and weight must be specified as both ints and inputs!!!!
0
No results yets there is some problem. Please write it exactly how to declare them