Take as input N, the size of array. Take N more inputs and store that in an array. Write a function that reverses the array. Print the values in reversed array.
1.It reads a number N.
2.Take Another N numbers as input and store them in an Array.
3.Reverse the elements in the Array.
4.Print the reversed Array.
Input Format
First line contains single integer n denoting the size of the array. Next line contains n space separated integers denoting the elements of the array.
Constraints
N cannot be Negative. Range of Numbers can be between -1000000000 to 1000000000.
Output Format
Print the elements of the reversed array in space separated manner.
Sample Input
5
0 4 6 8 9
Sample Output
9 8 6 4 0
solution link: https://ide.codingblocks.com/s/297667
only one test case is passing