Questions
Python Program to Find Area of a Circle.
Last Updated : 12 Mar 2026
Jul 24
Solution:
# Prompt the user to enter the radius of a circle and convert the input to an integer
r = int(input("Enter radius of a circle: "))
# Calculate the area of the circle using the formula: area = π * r^2
area = 3.14 * r * r
# Print the calculated area of the circle
print("Area of circle is =", area)
OUTPUT:
Enter radius of a circle 7
Area of circle is = 153.86
Explaination:
This code calculates the area of a circle given its radius:
- Input: Prompts the user to enter the radius and stores it as an integer.
- Area Calculation: Uses the formula Area=π×r2 (with π approximated as 3.14).
- Output: Prints the calculated area of the circle.
Report an error
Meanwhile you can watch this video
Watch Video