Python练习题第六题
题目:
编写函数计算弧长的计算公式。弧长计算公式是一个数学公式,为L=n(圆心角度数)× π×2 r(半径)/360(角度制)。其中n是圆心角度数,r是半径,L是圆心角弧长。
#2019/12/26/18:19
import math
math.pi
n = int(input("please enter the n:"))
r = int(input("please enter the r:"))
L=((n*2.0*math.pi*r)/360)
print(L)