欢迎光临散文网 会员登陆 & 注册

0307

2023-03-07 15:40 作者:是南殷a--  | 我要投稿

BMI=float(input('同学们,请输入您的身体质量指数:'))

if BMI<18.5:

    print('偏瘦')

if BMI>=18.5 and BMI<23:

    print('正常')

if BMI>=23 and BMI<25:

    print('偏胖')

if BMI>=25 and BMI<40:

    print('肥胖')    

else:

    print('超胖,请同学锻炼身体')


0307的评论 (共 条)

分享到微博请遵守国家法律