Computer Science, asked by anaborah77, 9 months ago

write a java program to input the area of a circle and find its circumference ​

Answers

Answered by Anonymous
5

Answer:

The program output is also shown below.

  • public class Area.
  • int r;
  • double pi = 3.14, area;
  • Scanner s = new Scanner(System.
  • System. out. print("Enter radius of circle:");
  • r = s. nextInt();
  • area = pi * r * r;
  • System. out. println("Area of circle:"+area);

follow me

Answered by kkakkar282
2

The program output is also shown below.

public class Area.

•int r;

•double pi = 3.14, area;

•Scanner s = new Scanner(System.

•System. out. print("Enter radius of circle:"

);

•r = s. nextInt();

Similar questions