Write a program that reads two integer numbers from the standard input and outputs them in the reverse order separated by one space.
Integer types and operations
Reversing input numbers
Report a typo
Sample Input 1:
1 2Sample Output 1:
2 1Write a program in Java 17
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// start coding here
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.