#include
int main(int argc, char* argv[])
{
int i, j;
for (i = 0; i < 100; i++)
{
printf("外循环i=%d\n", i);
for (j = 0; j < 10; j++)
{
i = i + 10;
printf("内循环i=%d\n", i);
if (i < 100)
{
printf("退出内层循环,回到外层循环\n");
break;
}
else
{
printf("退出外层循环\n");
goto EndForLoop;
}
}
}
EndForLoop:
printf("已经退出外层循环");
return 0;
}