为啥continue不在循环语句内
#include <stdio.h>int main() {
int a, b, c;
scanf("%d", &a);
for (b = 0; b < a; b++);
{
/*while (b = a - 1) {
break;//break 跳出循环
}*/
if (b % 2 != 0) {
continue;
}
c = b;
}
printf("%d\n", c);
printf("%d\n", a);
return 0;
} 你这是编译的时候就报错了是吗 ?我这边把for循环后面的;去掉就能正常编译了
页:
[1]