Objective
Today, we're learning about the Array data structure. Check out the Tutorial tab for learning materials and an instructional video!
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
1<= Ai<=10000, where Ai is the ith integer in the array.
Output Format
Print the elements of array Ain reverse order as a single line of space-separated numbers.
Today, we're learning about the Array data structure. Check out the Tutorial tab for learning materials and an instructional video!
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
1<= Ai<=10000, where Ai is the ith integer in the array.
Output Format
Print the elements of array Ain reverse order as a single line of space-separated numbers.
Sample Input 4 1 4 3 2
Sample Output 2 3 4 1I think this solution for this challenge, because I know only for and if conditions in Python and I see in documentation that there is a method call reverse () , but if there is another way I will accept and forgive me If I was wrong.