#include<stdio.h>
int
main(void)
{
long sum = 0L;
for (int n=1;n<20;sum+=n,n+=2)
{
printf("sum is %ld\n",sum);
printf("n is %d\n",n);
printf("sum + n = %ld\n", sum+n);
printf("\n");
}
return 0;
}
/*
**你拿我这段代码运行,我相信你看完N的值就应该明白了
**以后在遇到这样情况就用printf()函数把相应的值输出,以作参考!
*/