a python program to find area of circle
Answers
Answered by
2
Below are the output and the python program for the above question:
Output :
If the user input as 3, then the output is "28.285714285714285".
If the user input as 4, then the output is "50.285714285714285".
Explanation:
radius=float(input("Enter the radius of a circle to prints the area: "))#Take the input from the user.
print("The area of a circle is",(22/7)*radius*radius)#print the area of a circle.
Code Explanation :
- The above code is in python, in which the first line is used to take the input from the user after instructing the user for the input and store it on the radius variable after converting it into float type value.
- Then the area is printed with the help of a print statement after calculating the area of the circle with the help of the formula of a circle.
Learn More :
- Python : https://brainly.in/question/14689905
Similar questions