6 lines
87 B
Text
6 lines
87 B
Text
func factorial n .
|
|
r = 1
|
|
for i = 2 to n : r *= i
|
|
return r
|
|
.
|
|
print factorial 7
|