Guest User

Untitled

a guest
Jan 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. int factorial (int num)
  2. {
  3. if (num==1)
  4. return 1;
  5. return factorial(num-1)*num; // recursive call
  6. }
Add Comment
Please, Sign In to add comment