| ||||||||||
| 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 | |||||||||
求指教啊老是wrong answer#include<stdio.h>
int main()
{
int i;
float ave,s=0.00,a[12];
for(i=0;i<12;i++)
{
scanf("%0.2f\n",a[i]);
s=s+a[i];
}
printf("$%0.2f\n",s/12.0);
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator