Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void cnt_cif(int n, int k, int &c)
- { int nr=0;
- if(n<10)
- {if(n>=k)
- c=1;
- else
- c=0;}
- else
- {
- cnt_cif(n/10,k,c);
- if(n%10>=k)
- c++;
- }
- //return c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement