Adapted by Neilor Tonin, URI Brazil
Write a program that reads an array N [20]. After, change the first element by the last, the second element by the last but one, etc.., Up to change the 10th to the 11th. print the modified array.
The input contains 20 integer numbers, positive or negative.
For each position of the array N print "N[i] = Y", where i is the array position and Y is the number stored in that position.
Input Sample | Output Sample |
0 |
N[0] = 230 |