need help with my BMI calculator | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

need help with my BMI calculator

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

29th Jun 2022, 8:56 AM
RazaHussain Khalid
2 Réponses
+ 2
got the answer weight = float(input()) height =float(input ()) BMI= weight / (height)**2 if BMI < 18.5: print ('Underweight') elif(BMI >=18.5 and BMI < 25): print("Normal") elif(BMI >= 25 and BMI < 30): print("Overweight") else: print("Obesity")
29th Jun 2022, 9:06 AM
RazaHussain Khalid
+ 1
if BMI < 18.5 elif BMI < 25 elif BMI < 30 else
29th Jun 2022, 9:05 AM
Мартин 😑🎵
Мартин 😑🎵 - avatar