Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Computing factorial of an integer with recursion and iteration [EDIT]

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

    
                
λ
.NET NoSQL database for rapid development