虽然运行成功但不懂啥意思? 请大神解答?
#include
int main() {
int sum = 0;
int i = 1;
for(i=1;i<=100;i=i+2)
{
sum+=i;
}
for(i=0;i<=100;i=i+2)
{
sum-i;
}
printf("sum=%d\n",sum); return 0; }
#include
int main() {
int sum = 0;
int i = 1;
for(i=1;i<=100;i=i+2)
{
sum+=i;
}
for(i=0;i<=100;i=i+2)
{
sum-i;
}
printf("sum=%d\n",sum); return 0; }
2019-02-19
举报