Appearance
題目說明:請撰寫一程式,讓使用者輸入兩個正數n、s,代表正n邊形之邊長為s,計算並輸出此正n邊形之面積(Area)。
提示1:建議使用import math模組的math.pow及math.tan
import math
math.pow
math.tan
提示2:正n邊形面積的公式如下:
Area=(n∗s2)÷(4∗tan(pi÷n))
提示3:輸出浮點數到小數點後第四位 。
8 6
Area = 173.8234
1019ec8