0

Can anyone please tell me why the code for BMI calculator doesn't give an output for the second test?

height=float(input()) weight=float(input()) x=weight/height*height if x<18.5: print("Underweight") elif x>=18.5 and x<25: print("Normal") elif x>=25 and x<30: print("Overweight") else: print("Obesity")

25th Jan 2022, 3:29 PM
Ashlesha GK
2 ответов
+ 2
Thank you so much ravilnicki
26th Feb 2022, 3:50 PM
Ashlesha GK
+ 1
https://www.sololearn.com/discuss/2969758/?ref=app I did write the code you can check it
9th Feb 2022, 7:22 AM
Ashlesha GK