①if ②while ③while...do for可以看成while的变形 for(i = 0;i < 10;i++) { ***** } 相当于 i = 0; while(i < 10) { *****; i++; }