write a program that accepts radius of a circle and print its area in python
Answers
Answered by
4
Answer:
from math import*
radius = float(input('What is the radius of the circle:'))
print('The area of the circle with radius {0} is {1}'.format(radius, (pi * radius ** 2)))
Explanation: use the math library to use the value of pi.
Answered by
0
r = float(input("Enter the radius of the circle: "))
print("Area of the circle =", 3.14 * (r * r))
Similar questions