import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
System.out.println("Enter the first Number");
Scanner scan = new Scanner(System.in);
int i = scan.nextInt();
System.out.println("Enter the second Number");
int j = scan.nextInt();
int max = i;
if(j>i){
max = j;
}
System.out.println("Maximum number is: "+max);
}
}
Comments
Leave a comment