Write a python program which accept the radius of a circle from the user and compute the area.
Answers
Answered by
55
1. from math import pi
2. r = float(input ("Input the radius of the circle : "))
3. print ("The area of the circle with radius " + str(r) + " is: " + str(pi * r**2))
2. r = float(input ("Input the radius of the circle : "))
3. print ("The area of the circle with radius " + str(r) + " is: " + str(pi * r**2))
Answered by
11
r = float(input("Enter the radius of the circle: "))
print("Area of the circle =", 3.14 * (r * r))
Similar questions