Computer Science, asked by nandanm992, 10 months ago


Write a Python program that accepts radius of a circle and prints its area

Answers

Answered by Ayushpratapsingh2210
10
r = int(input("Enter radius of the circle:")
Area = π*r*r
print("Area of the circle is:" , Area)

Hope it Helps !
Mark as brainliest
Answered by AskewTronics
0

Below are the output and the python program for the above question:

Output :

If the user input as 5, then the output is "78.57142857142857".

If the user input as 6, then the output is "78.57142857142857".

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