Question: We've already made arraying/listing the easy way, but how about arraying/listing and printing the list in reverse order? Make a program that will input an

We've already made arraying/listing the easy way, but how about arraying/listing and printing the list in reverse order? Make a program that will input an integer and then using loops, add items on an array/list one by one for the same number of times as that of the first inputted integer. Then, print out the array/list in reverse order, that is, starting from the last item on the array/list down to the first one, each in separated lines.

Input Format

The first line contains the size of the array/list. The next lines contains the items of the array/list (integers).

Input Sample

5

1

64

32

2

11

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!