import java.util.*;
class Larger
{
public static void main(String args[])
{
int a,b,large;
Scanner sc = new Scanner(System.in);
System.out.println("Enter two numbers:");
a=sc.nextInt();
b=sc.nextInt();
large=(a>b)?a:b;
System.out.println("Large="+large);
}
}
class Larger
{
public static void main(String args[])
{
int a,b,large;
Scanner sc = new Scanner(System.in);
System.out.println("Enter two numbers:");
a=sc.nextInt();
b=sc.nextInt();
large=(a>b)?a:b;
System.out.println("Large="+large);
}
}
No comments :
Post a Comment