Does the first one work if you change it to:

Code:
for(int x = 0; x < Y;x = x + 1){out[x] = 'I';}