Digits from 0 to 9 backwards

Report a typo

Write a program that prints numbers from 0 to 9, but in the backward order. All numbers must be in the same line. Separate them by a space character (' ').

The output should be the following:

9 8 7 6 5 4 3 2 1 0

It is possible to use numbers, strings or characters to solve this task. Choose any way to solve this task.

Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic