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")
2 Respostas
+ 5
Jewish Owl , you have a typo in your code => "Owerweight" instead of "Overweight".
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")