Advertisement
nontawat1996

Rock2

Oct 1st, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     int input,Countzero=1,mod=10,ans;
  7.     scanf("%d",&input);
  8.     while(1)
  9.     {
  10.         ans=input%mod;
  11.         if(ans!=0) break;
  12.         mod*=10;
  13.         Countzero*=10;
  14.     }
  15.     printf("%d",(Countzero-1)/9);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement