(Reverse a list) The reverse function in Section 10.8 reverses a list by copying it to a new list. Rewrite the function that reverses the list passed in the argument and returns this list. Write a test program that prompts the user to enter a list of numbers, invokes the function to reverse the numbers, and displays the numbers.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.