favorite We need a little bit of your help to keep things running, click on this banner to learn more

Quick start C

Initial order

Array of n integers is given to the program input in reverse order - that is, in order from the last to the first element. Restore the original order of the elements in the array.


The first line contains a positive integer n. The next line contains n integers. All numbers do not exceed 100 by absolute value.


Print the elements of the array in one line, restoring the original order of its elements.

Time limit 1 second
Memory limit 128 MiB
Input example #1
6 0 -7 2 -3 5 7
Output example #1
7 5 -3 2 -7 0 6
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"