Given an array of N
integers. Element numbering starts from 0
. Write a program that prints the elements of an array with odd indices (1, 3, 5...).
Input
First given number N
— the number of elements in the array (1<=N<=100). Then, with a space, N
numbers — array elements. The array consists of integers, modulo not exceeding 100.
Imprint
It is necessary to display all elements of the array with odd indices.
Examples
# |
Input |
Output |
1 |
6
4 5 3 4 2 3
| 5 4 3 |