Write a program using Scanner class to calculate the area of a circle.
note:please help me
Answers
Answered by
1
Answer:
Java Program to Calculate and Display Area of a Circle
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);
Explanation:
i hope this answer will help you
Similar questions
English,
1 month ago
English,
1 month ago
Social Sciences,
2 months ago
Physics,
8 months ago
Science,
8 months ago