Factorial: Difference between revisions

Content added Content deleted
Tag: Manual revert
Line 1,492: Line 1,492:
9 => 362880
9 => 362880
10 => 3628800</pre>
10 => 3628800</pre>

==={{header|FTCBASIC}}===
<syntaxhighlight lang="basic">define f = 1, n = 0

print "Factorial"
print "Enter an integer: " \

input n

do

let f = f * n

-1 n

loop n > 0

print f
pause
end</syntaxhighlight>


==={{header|FutureBasic}}===
==={{header|FutureBasic}}===