write a program in Java to assign a radius with a value. Find the print area of circle using the formula
plz tell me d ansr PLZZZZZZZZZZZZZZZZZZ
Answers
Answered by
1
Explanation:
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);
Answered by
1
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);
please mark me as brain liest
Similar questions