Write a python program to calculate the area of a circle.

 

Write a python program to calculate the area of a circle.


PROGRAM:

radius=float(input("Enter the radius:"))
pi=3.14
area=pi*(radius**2)
print("The area of a circle with radius "+ str(radius)+ " is",area ,"square units")

OUTPUT:

No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.