0

What is fault in BMI calculator

I need to submit it as test https://code.sololearn.com/c63K4TUE819w/?ref=app

1st May 2021, 5:17 PM
vijay thakur
vijay thakur - avatar
2 Answers
+ 1
x=float(input()) s=float(input()) z= x/(s*s) if z<=18.5: print("Underweight") elif z>=25 and z<30: print("Overweight") elif z<25 and z>=18.5: print("Normal") elif z>=30 : print("Obesity")
1st May 2021, 6:17 PM
Atul [Inactive]
+ 1
There were spelling mistakes present in the code and the case of upper and lower case
1st May 2021, 6:17 PM
Atul [Inactive]