Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. function fact (n) {
  2. if (n == 1)
  3. return 1;
  4. else
  5. return n * fact(n - 1);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement