Computer Science, asked by 11sonusaini7227, 11 months ago

WAP to calculate the area of circle by input method​

Answers

Answered by khushi02022010
11

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