例程如下:#include main(){int a[6]={1,2,3,4,5,6};int i;for(int i=0;i<5;i+=2) // 控制好i的范围和每次循环i变化的值printf("%d\t%d\n",a[i],a[i+1]); // 输出两个以后输出一个'\n'}