RosettaCodeData/Task/Factorial/Bc/factorial.bc

8 lines
94 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
#! /usr/bin/bc -q
define f(x) {
if (x <= 1) return (1); return (f(x-1) * x)
}
f(1000)
quit