Originally Posted by
superjacent
You're on the right track. Another solution would be to use only one for loop and use an if else test condition to test for the first 25, do whatever...
If you want to use only one loop, you don't need to use condition.
for(int i =0; i<25; i++) {
alpha[i] = i * i;
alpha[49-i] = (49-i) * 3;
} Yesterday is a history, tomorrow is a mystery, today is a gift.
Behind every smile is a tear.
Visal .In