Write a python program to calculate the area of a circle.PROGRAM:radius=float(input("Enter the radius:"))pi=3.14area=pi*(radius**2)print("The area of a circle with radius "+ str(radius)+ " is",area ,"square units")OUTPUT:Enter the radius: 2The area of a circle with radius 2.0 is 12.56 square units
No comments:
Post a Comment