Area of a circle

This is a simple program to calculate area of a circle by taking radius as input from user.

print("Enter the radius of a circle to calculate area :")
radius=int(input())

import math
area=math.pi*radius*radius

print("Area of the circle is",area)

 

Leave a Comment

%d bloggers like this: