Computer Science, asked by san3926, 2 months ago

Write a program using Scanner class to calculate the area of a circle.



note:please help me​

Answers

Answered by prajapatijigar656
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