Python60分,求大佬帮帮
查看原帖
Python60分,求大佬帮帮
938453
xubing楼主2023/2/18 18:38

a = input().split() m,h = float(a[0]),float(a[1]) BMI = m/h**2 if BMI < 18.5: print("Underweight") if 18.5 <= BMI and BMI < 24: print("Normal") if 24 <= BMI: print('%.6g'%h) print("Overweight")

2023/2/18 18:38
加载中...