Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  8E691I8q
Language: JAVA
Code:


class 8E691I8q {
{
public static void main(String args[])
{
int x, y;
System.out.println("Enter two numbers: ");
Scanner in = new Scanner(System.in);

x = in.nextInt();
y = in.nextInt();

if ( x > y )
System.out.println("First number is largest.");
else if ( y > x )
System.out.println("Second number is largest.");
else
System.out.println(" Not Valid");

}
}     
Comments: