摘要: 题目要求: 数列求和 #include<stdio.h> int main(){ int i; int n; int sum; while(scanf("%d",&n)!=EOF){ sum=0; for(i=0;i<=n;i++){ sum+=i; } printf("%d\n\n",sum); 阅读全文
posted @ 2021-01-29 23:18 huxiaojie 阅读(74) 评论(0) 推荐(0) 编辑