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
Math,
7 months ago
Math,
7 months ago
India Languages,
7 months ago
Computer Science,
1 year ago
History,
1 year ago
Hindi,
1 year ago
English,
1 year ago