still cant figure out why the for loops didn't work though, thanks for the help
(as others are trying to explain)
The for loop, continually repeats the NEXT statement block.
So if you go for (..............) ;
The statement block is empty, so it does NOTHING. i.e. the semi-colon ends the statement block.
for (i = 0; i < 1000000; i++)
;x = x + 1;
would just increase x by ONE not a million.
for (i = 0; i < 1000000; i++)
x = x + 1;
or better still
for (i = 0; i < 1000000; i++)
{
x++;
}
would increase x by a million.