write a java program to input the area of a circle and find its circumference
Answers
Answered by
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
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
English,
4 months ago
Math,
4 months ago
Computer Science,
4 months ago
Computer Science,
9 months ago
Science,
9 months ago