fork download
  1. (define(fatorial n)
  2. (if(= n 0)1
  3. (* n (fatorial(- n 1)))))
  4.  
  5. (write(fatorial 5))
  6.  
  7. (define(comb n p))
  8. (fatorial n )/ (fatorial(p) * fatorial(- n p) )
  9.  
  10. (write(comb 4 5))
Runtime error #stdin #stdout 0.03s 4176KB
stdin
Standard input is empty
stdout
120