Hi
I need your help and I would appreciate if you help me.The question asks that (Increase by 2
The one-dimensional array A of integers is given. Increase by 2 each its non-negative element.
Specifications
Input
In the first line the number of elements h (h ≤ 100) in array is given. In the second line the elements of array are given, each of them by the absolute value does not exceed 100.
Output
Print h numbers in one line - the new elements of array, in the order they were given) But whenever I write for example 4 and then 1,2,3,4 the code manipulates as 3,4,5,6,6 (the last number is repeated and I cannot solve that).Please help me..