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-18 14:44:36 +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))