---
# System prepended metadata

title: Untitled

---

**#作業二**
**程式碼:**
**(1)四則運算**:
```
n1=int(input(“num1: “))
n2=int(input(“num2: “))
print(n1+n2)
print(n1-n2)
print(n1*n2)
print(round((n1/n2),2))


**(2)BMI運算:**

w=int(input(“Weight(kg):”))
h=int(input(“Height(cm):”))
h=h/100
BMI=round(w/(h**2),2)
print(BMI)
```


執行結果:
(1)四則運算:
![](https://i.imgur.com/0IP22Zs.png)


(2)BMI運算:
![](https://i.imgur.com/m6NfdRX.png)
