Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- float b;main (n){
- for(;n=scanf("%f",&b),b;printf("%d\n",--n))
- for(;b>0;) b-=1.0/++n;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement