#include <stdio.h>
void main ()
{
int i=0;
for (i=0; i<21; i++)
{
switch(i)
{
case 0:
i+=5;
case 1:
i+=2;
case 5:
i+=5;
default:
i+=4;
break;
}
printf("%d ",i);
}
getchar();
}
Run Code Online (Sandbox Code Playgroud)
现在这个程序的输出是16 21我不明白为什么这个程序在循环限制小于18时给出这个输出它只给出16但是当值大于18时输出是16 21任何帮助