C语言 goto实现循环

#include <stdio.h>

int main()
{
    int a = 0;
loop:
    a++;
    printf("%d\n",a);
    if(a == 100)
       goto end;
    goto loop;
end:
    return 0;
}

相关推荐