Answer to Question #40429 in C++ for ej
int ARR[ 4 ];
for (int i = 0; i < 4; i++)
if ( i % 2 == 0)
ARR[ i ] = 2 * i;
ARR[ i ] = i;
Unfortunately, the statement of your question is a bit confusing.
What do you need to be done? Please, give us the details so we could help you.