Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

求指教啊老是wrong answer

Posted by ustc911 at 2011-08-22 15:38:39 on Problem 1004
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator