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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here