---
# System prepended metadata

title: 410802075 BMI 1

---

# 410802075 BMI 1
```python=
print("請輸入姓名: " )
name1=input( )

print("請輸入"+name1+"身高cm: ") #要讓使用者輸入方便，請讓使用者輸入公分
s1h = float(input())

print("請輸入"+name1+"體重kg: ")
s1w = float(input())

s1h = s1h/100     #把使用者輸入的公分轉換成公尺 

#bmi=s1w/(s1h*s1h)
bmi = s1w/pow(s1h,2);

print("Hi,"+name1+"您的BMI為:"+str(bmi))
```
