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

错在哪里 求高手指点

Posted by liuxun at 2011-07-23 14:17:09
#include<stdio.h>
int main()
{   int i;
   float sum=0,a[12];
   for(i=0;i<12;i++)
   {   
        scanf("%f",&a[i]);
		   sum=sum+a[i];
   }
   printf("$");
   printf("%f",sum/12);
   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