Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 598 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 598 Bytes

Day 7 - Arrays

Objective

Today, we're learning about the Array data structure.

Task

Given an array, A, of N integers, print A's elements in reverse order as a single line of space-separated numbers.

Input Format

The first line contains an integer, N (the size of our array). The second line contains N space-separated integers describing array A's elements.

Constraints

1<=N<=1000

Output Format

Print the elements of array A in reverse order as a single line of space-separated numbers.

Sample Input

4
1 4 3 2

Sample Output

2 3 4 1