print("========健康測量程式===========")
print("提示:身高單位:米,質量單位:kg")
mass=float(input("請輸入你的質量:"))
height=float(input("請輸入你的升高"))
age=float(input("請輸入你的心理年齡:"))
realage=float(input("請輸入你的實際年齡:"))
bmi=mass/(height*height)
G=mass*10
iq=(age/realage)*100
print("你的重力為:"+str(G)+("N"))
print("你的IQ指數為:"+str(iq))
print("你的BMI指數為:"+str(bmi))
if mass<(1/3)*height:
print("你有點瘦,注意身體")
if iq>500:
print("你確實個高智商人才")
if iq>250 and iq<500:
print("果然是聰明")
if iq>30 and iq<250:
print("智商一般,謝謝使用")
if iq<30:
print("你是一個傻缺")
if bmi<18.5:
print("你好瘦,注意身體")
if bmi>=18.5 and bmi<24.9:
print("正常范圍,請保持")
if bmi>=24.9 and bmi<29.9:
print("你的體重過重")
if bmi>=29.9:
print("肥胖")
uj5u.com熱心網友回復:
可以啊,在手機上玩編程。。。轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/62660.html
標籤:Windows客戶端使用
