import java.util.Scanner;
class ifelse1
{
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
System.out.println("Enter the first value");
int i = scan.nextInt();
System.out.println("Enter the second value");
int j = scan.nextInt();
if(i>=j)
System.out.println("The maximum of these two values is "+ i);
else
System.out.println("The maximum of these two values is "+ j);
}
}
0 comments:
Post a Comment