I need to make program that asks user to enter n, the number of elements of the
string (not more than 50). If n is out of range print the message and request re-entry. Then enter n numbers that will print in the reverse order of the entry order.
What can I change in my code so I can get correct results like in this example:
(input) 55 0 5 1 2 3 4 5
(output)
Enter number of strings: Wrong input!!
Enter number of strings: Wrong input!!
Enter number of strings: Enter 5 numbers:
5, 4, 3, 2, 1,
This is code I wrote by now: