0

Как создать калькулятор имт? how to create a BMI calculator?

15th Aug 2022, 8:14 AM
Дружо4ек
Дружо4ек - avatar
5 Réponses
+ 3
Дружо4ек elif bmi >= 18.5 and bmi < 25: is the correct syntax. See if you can fix the other error also
16th Aug 2022, 9:22 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
m = int(input()) h = float(input()) bmi = m / (h**2) if bmi < 18.5: print("Underweight") elif (bmi >= 18.5 < 25): print ("Normal") elif (bmi >= 25 < 30.0): print("Overweight") else: print("Obesity")
16th Aug 2022, 9:18 PM
Дружо4ек
Дружо4ек - avatar
+ 2
Дружо4ек Review if, elif & else statements. Also review conditional statements, IE: if 5>7: do something
15th Aug 2022, 9:35 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Thanks
16th Aug 2022, 9:24 PM
Дружо4ек
Дружо4ек - avatar
+ 1
Привет Дружочек! Покажи пожалуйста свой код
15th Aug 2022, 9:35 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar