programming-examples/python/_Basics/Input the radius of a circle and compute the area.py
2019-11-15 12:59:38 +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))