Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Blog 

Computing factorial of an integer with recursion and iteration

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,83 sec, absolute running time: 0,33 sec, absolute service time: 2,17 sec 
fork mode |  history  | discussion
5! (using recursion) = 120
5! (using iteration) = 120
-5! (using recursion) = 120
-5! (using iteration) = 120

    
                
stackse - search stackoverflow differently