| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:有没有更简单的方法?In Reply To:Re:有没有更简单的方法? Posted by:90401529 at 2004-11-10 09:29:40 #include<iostream.h>
#include <stdio.h>
void main() {
double sum=0.0;
double k;
for(int i=0;i<12;i++) {
cin>>k;
sum+=k;
}
sum/=12;
cout<<"$"<<sum<<endl;
}
这题真无聊!
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator