Exerpad
Exercise 8 · Chapter: ArraysOptional+50 XP

Reverse Array

Read an array of numbers from input. The first line tells you how many numbers there are, and each following line has one number.

Print the numbers in reverse order, each on its own line.

Example input:

4
1
2
3
4

Example output:

4
3
2
1
Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.