write a program to find the area of the circle and circumference of the circle using scanner class (9th standard method only) plz plz plz
Answers
Answered by
4
Explanation:
import java.util.Scanner;
public class Area
{
public static void main(String[] args)
{
int r;
double pi = 3.14, area;
Scanner s = new Scanner(System.in);
System.out.print("Enter radius of circle:");
r = s.nextInt();
area = pi * r * r;
System.out.println("Area of circle:"+area);
}
}
Similar questions