代码语言:javascript复制
// goto 练习
#include "stdafx.h"
int main(int argc, char* argv[])
{
int a =0;
int sum =0;
lable_1: if(a<=100)
{
sum = a;
a ;
goto lable_1;
}
printf("%dn",sum);
return 0;
}