杭电ACM1092题目 Problem Description Your task is to Calculate the sum of some integers.Input Input#include"stdio.h"int main(){int a,b,n;a=0;while(scanf("%d",&n)!=EOF){while(n--){scanf("%d",&b);a=a+b;}printf("%d\n",a);}return 0;}错在哪里啊啊,说的基础点的额
问题描述:
杭电ACM1092题目 Problem Description Your task is to Calculate the sum of some integers.Input Input
#include"stdio.h"
int main()
{
int a,b,n;
a=0;
while(scanf("%d",&n)!=EOF){
while(n--){
scanf("%d",&b);
a=a+b;
}
printf("%d\n",a);
}
return 0;
}
错在哪里啊啊,说的基础点的额
答