RosettaCodeData/Task/Factorial/Bc/factorial.bc

8 lines
94 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
#! /usr/bin/bc -q
define f(x) {
if (x <= 1) return (1); return (f(x-1) * x)
}
f(1000)
quit