| ||||||||||
| 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:narrow at 2008-03-25 16:16:58 >
> #include "stdafx.h"
>
>
> void main()
> {
> float a;
> scanf("%f",&a);
>
> while(a!=0.00)
> {
> int b=0;float i=2.00,c=0.00;
> while(c<a)
> {
> c+=1/i;
> i++;
> b++;
> }
>
> printf("%d card(s)\n",b);
> scanf("%f",&a);
> }
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator