Jump to content

Factorial: Difference between revisions

Add SmallBASIC
(Add SmallBASIC)
 
Line 1,955:
{{out}}
<pre>6227020800</pre>
 
==={{header|SmallBASIC}}===
<syntaxhighlight lang="qbasic">
n = 10
 
factorial = 1
for ii = 2 to n
factorial = factorial * ii
next
print factorial
</syntaxhighlight>
 
==={{header|TI-83 BASIC}}===
25

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.