一种是for()循环,例如: for (i=0;i<10;i++) printf("%d\n",i); 另一种是while()循环,有两种形式: while(i<10) printf("%d",i); 和 do { printf("%d",i); }while (i--);