To find the area of a circle

A code to find the area of a circle using Python programming

Welcome to the code! We’ll be finding the area of the circle using the python programming. We’ll be finding the area of the circle by defining a function “findArea” and the user has to input the radius of the circle.

The area of the circle is;

Area = pi * r2
       where r is radius of circle 

Note: Loved the post? You too can publish your article on “Python for fun” which will be loved by millions. Contribute an article!

							
							
					r = int(input("Enter the radius of the circle: "))
area = 3.142 * r*r
print("Area of the circle is %.3f" % area);				
			
5 2 votes
Rating
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
aarav
aarav
9 months ago

its nice
but if you want to simplify it just write 22/7 in the place of 3.142