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

太郁闷了,WA了好几次,代码:

Posted by Mr_fls at 2012-03-27 22:34:09 on Problem 1004
In Reply To:输出格式理解错了 不理解错的话,程序太简单了 Posted by:secret_long at 2005-11-04 13:17:44
#include<stdio.h>
int main()
{
	float s = 0.0 ,sum ,k;
	int i ;
	for(i = 0; i <12; i++)
	{
		scanf("%f",&k);
		sum += k;
	}
	printf("$%0.2f\n",sum / 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