Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int broi_cifri(int n)
  2. {
  3. if (n>0) return (1+broi_cifri(n/10));
  4. }
  5.  
  6. int sbor_cifri(int n)
  7. {
  8. if (n>0) return (n%10+sbor_cifri(n/10));
  9. }
  10.  
  11. int k_cifri(int n)
  12. {
  13. if (n/10>0 && n%10!=k )k_cifri(n/10);
  14. else if (n%10==k) return 1;
  15. else return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement