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

小弟初来咋到,哪位大侠帮忙看看problem1004~~

Posted by ACM_dlutlengqian at 2008-11-05 20:01:02 on Problem 1004
#include<stdio.h>
void main()
{
float money[12];double average=0;
int i;
for(i=0;i<12;i++)
scanf("%.2f",&money[i]);
for(i=0;i<12;i++)   
printf("%f",money[i]);
for(i=0;i<=11;i++)
average+=money[i];
average=average/12;
printf("$%.2f\n",average);
}

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