Lucian_Adrian

#27 Cifre Zero

Feb 12th, 2022
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. int nr_cif_zero(int n){
  2. if(n<10)
  3. return n==0;
  4.  
  5. else
  6.  
  7. return nr_cif_zero(n/10)+(n%10==0);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment