RosettaCodeData/Task/Factorial/Bc/factorial.bc
2017-09-25 22:28:19 +02:00

7 lines
94 B
Text

#! /usr/bin/bc -q
define f(x) {
if (x <= 1) return (1); return (f(x-1) * x)
}
f(1000)
quit