Python basic, 5. Write a Python program to enter radius of a circle and find its diameter, circumference and area.
5. Write a Python program to enter radius of a circle and
find its diameter, circumference and area.
radius = int(input("Enter the radius of a Circle
:-"))
pi = 3.14
diameter = 2 * radius
cir = 2*pi*radius
area = pi*radius*radius
print("The diameter of a Circle
:-",diameter)
print("The circumference of a Circle :-
",cir)
print("The area of a Circle :- ",area)
Output :-