Does anyone else have problems with output?

Didn’t do too much printing today, but so far this seems to be working for me, 10000 was too short but it seems to work with this large of loop:

volatile int i = 0;
while(i++ < 1000000);