Docsity

Python program to find the AREA OF A CIRCLE, Exercises of Computer science

Toggle sidebar
bg1
Area of the Circle
Aim
Write a python program to find area of the circle.
Algorithm
1. Start
2. Initialise the variable pi = 3.14
3. Input the radius
4. Calculate area = pi*r*r
5. Display area
6. Stop
Program
r=int(input("Enter Radius: "))
a=round(22/7*r*r,2)
print('Area of circle with radius', r, 'is: ', a)
Output
Enter Radius: 4
Area of circle with radius 4 is: 50.29
Enter Radius: 10
Area of circle with radius 10 is: 314.29
Result
The python program to find the area of circle is
successfully
completed and output is verified.

Partial preview of the text

Download Python program to find the AREA OF A CIRCLE and more Exercises Computer science in PDF only on Docsity!

Area of the Circle

Aim

Write a python program to find area of the circle.

Algorithm

  1. Start
  2. Initialise the variable pi = 3.
  3. Input the radius
  4. Calculate area = pirr
  5. Display area
  6. Stop

Program

r=int(input("Enter Radius: ")) a=round(22/7rr,2) print('Area of circle with radius', r, 'is: ', a)

Output

Enter Radius: 4 Area of circle with radius 4 is: 50. Enter Radius: 10 Area of circle with radius 10 is: 314.

Result

The python program to find the area of circle is successfully completed and output is verified.