#include <stdio.h>
int main() {
int i, j;
outer:
for (i = 0; i < 3; i++) {
inner:
for (j = 0; j < 3; j++) {
printf("%d %d\n", i, j);
if (i == 1 && j == 1) {
goto outer;
} else if (i == 2 && j == 0) {
goto inner;
}
}
}
return 0;
}
for循环小记
最新推荐文章于 2024-08-14 23:48:25 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)