# Blog

# To find the area of a circle

- Harshit
- October 27, 2020
- 10:56 pm
- No Comments

**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 * r^{2}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);
```

Share on facebook

Share on whatsapp

Share on pinterest

5
2
votes

Rating

Subscribe

Login

0 Comments

Inline Feedbacks

View all comments