Computer Science, asked by Ronald11, 1 year ago

WAP IN JAVA SWING TO FIND THE LARGEST NUMBER.
NO SPAM
USE UR BRAIN.

Answers

Answered by Auror
4
Hey mate!!

I HAVE ATTCHED THE PROGRAM IN THE PDF section
yOU CAN RUN THE PROGRAM IN PDF IN blue-j

PASSWORD IS 
AUROR

THANKS
FOR ANY QUERIES IN-BOX ME
Attachments:

Ronald11: nice
Answered by Goodboy19
1
import java.util.Scanner;  
class LargestOfThreeNumbers
{ public static void main(String args[])
{
int x, y, z;
System.out.println("Enter three integers ");
       Scanner in = new Scanner(System.in);
         x = in.nextInt();
      y = in.nextInt();
      z = in.nextInt();

         if ( x > y && x > z )
System.out.println("First number is largest.");

else if ( y > x && y > z )
System.out.println("Second number is largest.");

else if ( z > x && z > y )
System.out.println("Third number is largest.");

else
System.out.println("Entered numbers are not distinct.");
}
}
Similar questions