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 mkxmkx at 2017-03-21 20:55:04 on Problem 1004
#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
	float month,sum;
	sum=0;
	int i;
	i=1;
	while(i<=12)
	{
		cin>>month;
		sum+=month;
		i++;
	}
	sum=sum/12.0;
	printf("$%.2f",sum);
	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