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);