Advertisement
dllbridge

Untitled

Jul 11th, 2019
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.10 KB | None | 0 0
  1. int fact(int n)
  2. {
  3.    
  4.     if(n  < 0) return 0;
  5.     if(n == 0) return 1;
  6.     return n * fact(n-1);  
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement