#homework1(BMI) ```python #輸入資訊 weight=int(input("體重(kg):")) #體重 height=int(input("身高(cm):")) #身高(cm) height=height/100 #身高公分轉公尺 BMI=round(weight/(height**2),2) print(BMI) #設體重=70kg 身高=170cm weight=int(70) #體重 height=int(170) #身高(cm) height=height/100 #身高公分轉公尺 BMI=round(weight/(height**2),2) print(BMI)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up