Advertisement
mgostih

Single line Factorial

Apr 23rd, 2016
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.07 KB | None | 0 0
  1. int fact(int n){
  2.     return n < 2 ? n : n *= fact(n-1);
  3. }
  4.  
  5. //mgostIH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement