Computer Science, asked by Snowden, 1 year ago

write a program to enter the radii of two circles and print the area of bigger circle​

Answers

Answered by OorjaPandey
2

Answer:

import java.util.*;

public class circle

{

   public static void min()

   {

       Scanner sc= new Scanner (System.in);

       double r1, r2, a1, a2;

       System.out.println("Enter radii of two circles=");

       r1=sc.nextInt();

       r2=sc.nextInt();

       a1=(3.14*r1*r1);

       a2=(3.14*r2*r2);

       if(a1>a2)

       System.out.println(+r1+" has the greater area");

       else

       System.out.println(+r2+" has the greater area");

   }

}

Hope this helps

Similar questions