5.WAP to find the area of circumference and perimeter of the circle.

5.WAP to find the area of circumference and perimeter of the circle.

Code:

r=int(input("Enter the Radius of a circle\n"))

pi=3.14 

area=pi*r*r

peri=2*pi*r

print("Area of circle is ",area)

print("Perimeter of circle is ",peri)

Output:

Enter the Radius of a circle

2

Area of circle is  12.56

Perimeter of circle is  12.56


Comments

Popular posts from this blog