0

Не могу пройти третий скрытый тест на калькуляторе ИМТ

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

8th Jan 2022, 9:19 AM
Jewish Owl
Jewish Owl - avatar
2 Réponses
+ 5
Jewish Owl , you have a typo in your code => "Owerweight" instead of "Overweight".
8th Jan 2022, 9:43 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
kg=int(input()) rost=float(input()) a= kg/(rost**2) if a < 18.5: print("Underweight") elif a >= 18.5 and a < 25: print("Normal") elif a >= 25 and a < 30: print("Overweight") elif a >= 30: print("Obesity")
26th Jul 2022, 12:39 AM
Влад Лопин
Влад Лопин - avatar