用户:
杨钧霆查看:0 回复:1 评论:0 创建时间:2021-11-21T13:32:03
【作品展示】

【作品介绍】
无
【作品源代码】
while 1:
h = input('请输入身高:')
w = input('请输入体重:')
BMI = float(w)/float(h)**2
if BMI < 18.5:
print('类型:瘦')
elif BMI < 24.9:
print('类型:正常')
elif BMI < 29.9:
print('类型:偏胖')
elif BMI < 34.9:
print('类型:肥胖')
elif BMI < 39.9:
print('类型:重度肥胖')
else:
print('类型:极重度肥胖')
print('--------分隔符--------')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn