To accept radius of a circle, calculate area and print the result
in the following format: Radius is
Area is
Repeat the whole process until the value of radius is o.java
Answers
Answered by
0
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);
I think it is helpful to you
Similar questions
Environmental Sciences,
4 months ago
Biology,
4 months ago
History,
4 months ago
English,
1 year ago
Math,
1 year ago
Accountancy,
1 year ago