programming-examples/python/_Basics/Input the radius of a circle and compute the area.py

3 lines
162 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
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))