Guest User

Untitled

a guest
May 20th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. public int count7(int n) {
  2. if (n==0) return 0;
  3. if (n%10 == 7) return 1 + count7(n/10);
  4. return count7(n/10);
  5. }
Add Comment
Please, Sign In to add comment