programming-examples/python/Basics/Input the radius of a circle and compute the area.py
2019-11-18 14:44:36 +01:00

3 lines
162 B
Python

from math import pi
r = float(input ("Input the radius of the circle : "))
print ("The area of the circle with radius " + str(r) + " is: " + str(pi * r**2))