| ||||||||||
| 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:大家帮我看一下错在哪?谢谢 Posted by:cosky at 2003-12-07 10:18:53 > #include <iostream.h>
> int main()
> {
> double a,j,sum;
> cin>>a;
> while(a>0.01)
> {
> j=2;
> sum=0;
> while(sum<a)
> {
> sum+=1/j;
> j++;
> }
> cout<<j-2<<"card<s>"<<endl;
> cin>>a;
> if(a<0.01)break;
> }
> return 0;
> }
a=0.01怎么办
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator