python

QLxie2023 发表于 8个月前 · 关联问题 体型判断

h,w = map(float,input().split())
t = w/h**2
if t<18:
print('underweight')
elif 18<=t<25:
print('normal')
elif 25<=t<27:
print('overweight')
else:
print('obese')