python-by-example-150-chall.../challenges27-34/challenge-031.py
2025-05-26 06:49:34 +08:00

7 lines
123 B
Python

import math
radius = float(input('Enter circle radius : '))
# ** 表示幂计算
area = math.pi * (radius**2)
print(area)