RosettaCodeData/Task/Factorial/Bc/factorial.bc
2023-07-01 13:44:08 -04: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