Computer Science, asked by aaronjdev3, 9 months ago

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 sareliyakrrish
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