apfl/functional_tests/recursive-faculty.at

11 lines
102 B
Text
Raw Normal View History

2021-12-10 20:22:16 +00:00
=== script ===
fac = {
0 -> 1
n -> * n (fac (--n ))
}
print (fac 10)
=== output ===
3628800