#include <stdio.h>
void main()
{
int n;
int sum=0; //初始sum变量值为0;
for(n=1;n<=10;n++)
{
sum=sum+n; //从一加到10;
}
printf("1+2+...+10=%d",sum);
}
#include <stdio.h>
int main()
{
int i,sum = 0;
for(i=0;i<=...
English Article | Word Count | Duration | Accuracy | Speed | Backspace | Error | Slogan |
---|---|---|---|---|---|---|---|
《C语言的for循环练习题》 | 906字 | 1.0分钟 | 100% | 63 CPM | 12 次 | 0 | 不及格,加强练习! |
Inspirational quotes: 我相信我爱你,依然,始终,永远。 ——安妮宝贝 | |||||||
What do you think of this article? Give it a rating and let it serve as a guiding light for others |