Enter the number of elements in the array: 5
Enter 5 integers: 1 2 3 4 5
Reversed array: 5 4 3 2 1