关于作者

Discuss / Python / 作业

作业

Topic source

冰点龙_722

#1 Created at ...

height = 1.75 weight = 80.5 bmi = weight/(height**2) if bmi <18.5: print('你的体重指数:','%.1f'% bmi,'过轻') elif bmi <25: print('你的体重指数:','%.1f'% bmi,'正常') elif bmi <28: print('你的体重指数:','%.1f'% bmi,'过重') elif bmi <32: print('你的体重指数:','%.1f'% bmi,'肥胖') else: print('你的体重指数:','%.1f'% bmi,'非常肥胖')


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.