python-by-example-150-chall.../challenges27-34/challenge-031.py

7 lines
123 B
Python
Raw Normal View History

2019-07-17 14:56:46 +08:00
import math
radius = float(input('Enter circle radius : '))
2025-05-26 06:49:34 +08:00
# ** 表示幂计算
2019-07-17 14:56:46 +08:00
area = math.pi * (radius**2)
print(area)