#include<stdio.h>
int main(void) {
int sum, number, i;//number用来暂存读入整数,sum用来储存累加和
i = 1;//
sum = 0;//sum赋值为0
printf("请输入10位整数\n");
//scanf_s("%d", &number);
while (i <= 10) {
scanf_s("%d", &number);//放在里面就要输入10位数字
sum += number;
i = i + 1;
}
printf("累加的值:%d\n", sum);
return 0;
}