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

6 lines
102 B
Python
Raw Normal View History

2019-07-17 14:56:46 +08:00
import math
radius = float(input('Enter circle radius : '))
area = math.pi * (radius**2)
print(area)