Computer Science, asked by scientist88, 9 months ago

write a program to calculate and print the area of a circumference of a circle using area equal to Pi R Square and the circumference is equal to 2 Pi R squared equal to 3.14​

Answers

Answered by 7156poonam
3

Answer:

class circle

{

public static void area ( double r )

{

ar = 22 / 7 * r *r)

{

System. out. println ( " area of circle " + area )

}

}

}

Answered by AskewTronics
0

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

Output :

If the user input as 6, then the output is "113.03999999999999" for area and 37.68 for circumference.

If the user input as 7, then the output is " 153.86 " for area and 43.96 for circumference.

Explanation:

r=int(input("Enter the radius to find the area and circumference of a circle: "))#Take the input from the user.

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.

Missing information : There is one line missing in the question which is "let Pi=3.14".

Code Explanation :

  • The above code is in python language, in which there is an input statement that instructs the user for input and takes the input from the user.
  • Then the area and circumference is printed by the help of formula and print function.

Learn more :

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