Jump to content

Runtime evaluation/In an environment: Difference between revisions

m
→‎{{header|REXX}}: added whitespace, changed a comment.
(Added Wren)
m (→‎{{header|REXX}}: added whitespace, changed a comment.)
Line 895:
 
=={{header|REXX}}==
<lang rexx>/*REXX program to demonstratedemonstrates some run-time run─time evaulations. */
ba= fact(43)
 
ab= fact(34)
b=fact(4)
say b-a
exit /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
 
fact: procedure; parse arg n; != 1; do j=2 to n; != ! * j; end; return !</lang>
/*───────────────────────────────────FACT subroutine────────────────────*/
{{out|output|text=&nbsp;}}
fact: procedure; parse arg n; !=1; do j=2 to n; !=!*j; end; return !</lang>
'''output'''
<pre>
18
Cookies help us deliver our services. By using our services, you agree to our use of cookies.