Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Latest commit

 

History

History

reverse_elements_of_array

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Reverse Elements Of Array

This program takes an array of size N and prints the array by reverseing its elements.

Input Format

  • The input consists of two lines.
  • In the first line, there will be a single integer N.
  • In the second line, there will be N space separated integers.

Output Format

A single line,there will be N space seperated elements of new reversed array.

Sample Input

5
1 3 4 5 6

Sample Output

6 5 4 3 1

Implemented in: