Answer:
The program written in Java programming language is given in the explanation section
Explanation:
import java.util.Scanner;
public class num10 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter First number");
int fnum = in.nextInt();
System.out.println("Enter Second Number");
int snum = in.nextInt();
if(fnum>snum){
System.out.println(fnum+", "+snum);
}
else if (snum>fnum){
System.out.println(snum+", "+fnum);
}
else{
System.out.println("The same number was received.");
}
}
}