write a program in java for calculating area of circle use scanner classes or buffered reader classes
Answers
Answered by
2
Answer:
The program output is also shown below.
1 public class Area.
2 int r;
3 double pi = 3.14, area;
4 Scanner s = new Scanner(System.
5 System. out. print("Enter radius of circle:");
6 r = s. nextInt();
7 area = pi * r * r;
8 System. out. println("Area of circle:"+area);
Similar questions