#include <stdio.h>
#define N 10
int main(int argc,char *argv[]){
int a[N],i,sum;
printf("Input %d integers...\n",N);
for(sum=i=0;i<N;sum+=a[i++])
scanf("%d",a+i);
printf("The SUM is %d\nThe AVER is %g\n",sum,sum/(i+0.0));
return 0;
}
追问可以用小写吗
本回答被提问者和网友采纳