summaryrefslogtreecommitdiff
path: root/comp/work/1/areaCirc.py
blob: 5c5deacf2b62e06c7bcae76077e3e78e194ca13c (plain)
1
2
3
4
5
6
7
8
9
10
import math

radius = float(input("radius of the circle: "))

area = (math.pi) * (radius * radius)

areaInPi = area / math.pi

print("the area of a circle with a radius of", radius, "is", area, "(",areaInPi,"PI )")