Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. int f(int n) {
  2. int a = 10;
  3. for (int i = 0; i <= 10 ; i++) {
  4. System.out.println("asdf");
  5. }
  6. if (n == 0) {
  7. return 1;
  8. } else {
  9. return n * f(n-1);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement