Module: Dynamic arrays: vector


Problem

5/8

Removing elements - 2

Problem

Given an array of N elements.  Remove uneven symmetrical elements.

The first line contains the number N (1<=N<=15)  - the number of elements of a one-dimensional array
The second line contains N integers (numbers are entered from the keyboard)

Sample Input and Output
Test No. Input data Imprint
1
5
1 0 2 0 0
0 2 0
2
6
4 0 1 4 5 4 
4 4