Saturday, 14 September 2024

Practical - 53 - Write a program in Python that accepts radius of a circle and prints its area.

 Practical - 53 - Write a program in Python that accepts radius of a circle and prints its area.


Ans:

radius=float(input("Enter the radius of a circle: "))

pi=3.14

area=pi*radius**2

print("Area=",area)

 

Output:

Enter the radius of a circle: 10

Area= 314.0

No comments:

Post a Comment