# **計算BMI** [COLAB連結](https://colab.research.google.com/drive/1B6biHWts6hE4skGGedW9nertbSIBUdDy?usp=sharing) 題目: 請使用者輸入所需資訊計算出其BMI 體重單位為公斤 身高單位為公尺 BMI計算至小數點後兩位 ```python= print("Please input your weight, weight in kilograms") weight=float(input()) print("Please input your height, height in meters") height=float(input()) BMI=weight/(height*height) print("Your BMI is ",round(BMI,2)) ``` 
×
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