Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Area of Circle in Python

Python program to get radius of circle and find area of circle.

Sample Input 1:

4

Sample Output 1:

50.24

Program or Solution

					    
							
r=int(input("Enter the radius:"))
area=3.14*r*r
print("area: {}".format(area))

					    
					

Program Explanation

get th radius of a circle using input() method calculate area = pi * r * r