Runtime evaluation/In an environment: Difference between revisions

(→‎{{header|REXX}}: Marked incorrect: The example needs to interpret two functions of the values of a variable x, then return their difference.)
Line 370:
 
=={{header|REXX}}==
{{incorrect|REXX|The example needs to interpret two functions of the values of a variable x, then return their difference.}}
<lang rexx>
a=x(3)
theInput = ' x=fact(4) - fact(3) '
b=x(4)
interpret theInput
say xb-a
exit
 
 
factx: procedure;arg n;!=1;do j=2 to n;!=!*j;end;return !
</lang>
Output: