Output in reverse order
Problem
Given a set of numbers. Fill the array with the original numbers. Print the elements of the given array in reverse order without changing the array itself.
Input
Enter a set of numbers. All numbers are on the same line. The number of numbers is not more than 100.
Imprint
Print the contents of the array in reverse order on one line, separating the numbers with one space.
Example
# |
Input |
Output |
1 |
1 2 3 4 5 |
5 4 3 2 1 |
Запрещенные операторы: reverse
; min
; max
; sum
; ::-1