Decrement all

Report a typo

Write a program that reads four numbers and decrements each of them.

The program must output the results in the same order separated by spaces.

Sample Input 1:

10 11 -2 -3

Sample Output 1:

9 10 -3 -4
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// put your code here
}
}
___

Create a free account to access the full topic