Store them in an array and when done output the array starting from the last input.
WaltP
Posting Sage w/ dash of thyme
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37
For pseudocode you dont have to write in any specific programming language. Just write for example :
i = lastitem...firstitem
tungnk1993
Junior Poster in Training
95 posts since May 2010
Reputation Points: 6
Solved Threads: 7
Skill Endorsements: 0