Friday, February 1, 2019

URI 1175:: SOLUTION

URI Online Judge | 1175

Array change I

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.

Input

The input contains 20 integer numbers, positive or negative.

Output

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 SampleOutput Sample
0
-5
...
63
230
N[0] = 230
N[1] = 63
...
N[18] = -5
N[19] = 0



[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....


See the ANSWER here...
                                                                 

No comments:

Post a Comment