What Jim means is that


for (i=0; i<=9;i++);
{
...

should be