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

Re:1004老是说编译错误,我晕了。。

Posted by F117 at 2007-03-22 17:15:17 on Problem 1004
In Reply To:Re:1004老是说编译错误,我晕了。。 Posted by:F117 at 2007-03-22 17:14:33
刚才发错了,这是我改的,一下就AC了
#include<stdio.h>
#include<stdlib.h>
int main()
{float month[12];
int i;
float total=0;
for(i=0;i<12;i++)
	{scanf("%f",&month[i]);
	total+=month[i];
	}
total/=12.00;
printf("$%.2f",int((total+0.005)*100)/100.00);
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