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:有关1004题的请教

Posted by liuguangxi at 2006-12-06 23:17:15 on Problem 1004
In Reply To:有关1004题的请教 Posted by:fenglx at 2006-11-29 20:40:37
> 我是新手,刚编了一个小程序,有错误,麻烦大家帮我看看,是1004号题,这是我写的程序:
> #include<iostream.h>
> void main(){
> float a[12],sum=0.0,aver;
> int i;
> for(i=0;i<12;i++)
> cin>>a[i]>>endl;
> for(i=0;i<12;i++)
> sum+=a[i];
> aver=sum/12.0;
> cout<<"$"<<aver<<endl;
> }

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