3 lines
83 B
Racket
3 lines
83 B
Racket
|
|
(define (factorial n)
|
||
|
|
(for/fold ([pro 1]) ([i (in-range 1 (+ n 1))]) (* pro i)))
|