Computer Science, asked by anilpatilkulkarni, 4 months ago

Write a java program to find the area of the circle and circumference of the

circle using Scanner class​

Answers

Answered by ammaararshad5
1

Explanation:

import java.util.*;

class area_circumference

{

public static void main()

{

Scanner in=new Scanner(System.in);

int radius,circumference,area;

System.out.println("enter the radius");

radius=in.nextInt();

area=22/7*radius*radius;

circumference=2*22/7*radius;

System.out.println("area of circle is: "+area);

System.out.println("circumference of circle is: "+circumference);

}

}

Similar questions