DevJourney · code I wrote while learning

circledimensions.py

190 B
#Program to find area and perimeter of a circle
r=int(input("Enter radius : "))
pi=3.14
p=2*pi*r
a=pi*r**2
print("The circle having radius {0} has perimeter {1} and area {2}".format(r,p,a))