Advertisement
lily09290110

短碼練習

Jan 16th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.12 KB | None | 0 0
  1. #include<stdio.h>
  2. float b;main (n){
  3.    for(;n=scanf("%f",&b),b;printf("%d\n",--n))
  4.       for(;b>0;) b-=1.0/++n;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement