12. هثال:أكبشهوا ويطبع أعذاد ثالثت باستقبال يقىم بشًاهج اكتب.
اىَحبضش:ٜاىذسٗق ٌسبى
12
import java.util.Scanner;
public class First
{
public static void main(String[] args)
{
Scanner input= new Scanner (System.in);
int x1,x2,x3;
System.out.print( "Enter the first number");
x1=input.nextInt();
System.out.print( "Enter the Second number");
x2=input.nextInt();
System.out.print( "Enter the Third number");
x3=input.nextInt();
if ( x1 > x2 && x1>x3)
System.out.println( "X1=" + x1 + " Is greater than all");
if ( x2 > x1 && x2>x3)
System.out.println( "X2=" + x2 + " Is greater than all");
if ( x3 > x2 && x3>x1)
System.out.println( "X3=" + x3 + " Is greater than all");
}}