#14 公式計算,比方寫梯形面積的 function

//梯形面積公式(上底+下底*高/2)func 梯形面積(上底:Int,下底:Int,高:Int){let 梯形 = (上底+下底)*高/2print(梯形)}梯形面積(上底: 18, 下底: 19, 高: 20)

--

--