Computer Science, asked by sampakr77, 10 months ago

Write a java program to input the area and print the radius of a circle...

Answers

Answered by cokkie200421
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);

Similar questions