hhhhh
#include <stdio.h>
int main()
{
int sum = 0; //定义计算结果变量sum
int i = 1; //定义循环数字变量i
for(;i<=100;i++)
{if(i=100)sum=-50;
}
printf("sum=%d\n",sum);
return 0;
}
?
#include <stdio.h>
int main()
{
int sum = 0; //定义计算结果变量sum
int i = 1; //定义循环数字变量i
for(;i<=100;i++)
{if(i=100)sum=-50;
}
printf("sum=%d\n",sum);
return 0;
}
?
2021-05-20
举报