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 isjune at 2015-06-03 16:00:52 on Problem 1004
#include<stdio.h>

int main()
{
	float data[12]={0.00};
	float sum=0.00;
	float average=0.00;
	int i=0;
	for(i=0;i<12;i++)
	{
		scanf("%f",&data[i]);
		sum=data[i]+sum;
	}
	average=sum/12;
	printf("$%.2f",average);
	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