| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
不知道哪里一直出错,求帮助。附代码···#include<stdio.h>
#include<string.h>
int main()
{
float a[13],b=0.0;
int i;
memset(a,0.0,13);
for (i=0;i<12;i++)
{
scanf("%f",&a[i]);
b=b+a[i];
}
b=b/12.0;
printf("$%.2f\n",b+0.005);
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator