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:小弟初来咋到,哪位大侠帮忙看看problem1004~~

Posted by shengfan200 at 2009-03-23 22:40:35 on Problem 1004
In Reply To:小弟初来咋到,哪位大侠帮忙看看problem1004~~ Posted by:ACM_dlutlengqian at 2008-11-05 20:01:02
#include<stdio.h>
int main()
{
	int i;
	float av, a, sum = 0.0;
	for (i = 1; i <= 12; i++ )
	{
		scanf("%f", &a );
		sum = sum + a;
	}
	av = sum / 12;
	printf("%$f", av );
	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