Write a Python program that accept the radius of a circle and print its area .
Answers
Answered by
2
, , search it on Google
sudhadevi:
Thanks
Answered by
3
In order to do this, we will first need to know the formula for the area of a triangle.
Area = πr²
The 'r' is the radius and we will need to accept the radius from the user and substitute the value in the equation.
Hence, we will need to take an input.
radius = float(input('Enter the radius:'))
print(3.14*(radius)**2)
3.14 is the approx. value for pi and ** in python mean 'to the power of'.
Similar questions