fork download
  1. "Write some code that, given any number, will output it's factorial (ie given n, output n!)." <- function(n)
  2. {
  3. ifelse(n, n*`Write some code that, given any number, will output it's factorial (ie given n, output n!).`(n-1), 1)
  4. }
  5.  
  6. `Write some code that, given any number, will output it's factorial (ie given n, output n!).`(5)
Success #stdin #stdout 0.44s 22824KB
stdin
Standard input is empty
stdout
[1] 120