say I have a user input 5 integers and have them stored into an array.
say he chooses the integers [1,2,3,4,5], how can I then reverse the order of the contents of the array so that it becomes [5,4,3,2,1]?
*i dont need to know about the user input stuff, I have that, just would like to know how to reverse the contents of the array*
thanks.
Tags: