Computer Science, asked by singh4045, 1 year ago

Write a program to find area and circumference of circle where radius is equal to 5 cm area of circle is equal to 3.14 into radius into radius circumference of circle is equal to 2 into 3.14 in to radius

Answers

Answered by ankitphookan
1

Answer:

https://media.giphy.com/media/12SXVd8bmXdSg0/giphy.gif

Answered by AskewTronics
1

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

Output :

The output for the program is "78.5 " for area and 31.400000000000002 for circumference.

Explanation:

r=5#Assign 5 on the radius which is stated by the question.

print("The area of a circle is: ",3.14*r*r)#Print the area of a circle.

print("the circumference of a circle is: ",2*3.14*r)#Print the circumference of a circle.

Code Explanation :

  • The above code is in python language, in which there is a variable r which holds the value 5 because the above question states that the radius value must be 5.
  • Then the area and circumference are printed with the help of formula and print function.

Learn more :

  • Python : https://brainly.in/question/14689905
Similar questions