题解 | #N个数之和#
N个数之和
http://www.nowcoder.com/practice/b007744eb43b4f7b95d9e87de01528db
#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int sum=0;
while(n--){
int num;
scanf("%d",&num);
sum+=num;
}
printf("%d",sum);
}