Python program to calculate the area of a circle.

In this python basic program, we will calculate the area of a circle.

Steps to solve the program
  1. Take the radius of the circle as input through the user.
  2. Calculate the area of a circle using the following formula: Pi*r*r, where pi is equal to 3.14 and r is the radius of the circle.
  3. Print the output.
				
					radius = int(input("Enter radius of circle: "))
area = 3.14*radius*radius

print("Area of circle: ",area)
				
			

Output :

				
					Enter radius of circle: 4
Area of circle:  50.24
				
			

calculate the area of the square.

calculate the area of a cube.

Leave a Comment