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