0,2,4,6,8,10 < br / > to 12 does not conform to, 6 times < br / > is to perform obviously < br / > or is wrong, Either you've copied the wrong question
if you change it to printf("%d\n",i++);
Then each time loop i increases by 3,0,3,6,9 and exits at 12, execute