Write a program that takes an array name X of 10 values as an input
parameter and an array name Y with 10 values as an output parameter.
The program should copy the integers in X into Y but in reverse order.
Input:
Array X [10] – 1 2 3 4 5 6 7 8 9 0
Process : copy array X in reverse order to array Y
Array Y[10] – 0 9 8 7 6 5 4 3 2 1
Output: print array X and array Y
Comments
Leave a comment