python求圆的周长和面积
import math
R=float(input(‘请输入圆的半径:’))
S=math.pi * R * R
L=2 * math.pi * R
print(‘圆的面积:’+str(S)+’\n’+‘圆的周长:’+str(L))
#测试结果如下:
import math
R=float(input(‘请输入圆的半径:’))
S=math.pi * R * R
L=2 * math.pi * R
print(‘圆的面积:’+str(S)+’\n’+‘圆的周长:’+str(L))
#测试结果如下: