Runtime evaluation/In an environment: Difference between revisions

m
→‎{{header|REXX}}: added parenthesis.
m (used a correct header (instead of a section header).)
m (→‎{{header|REXX}}: added parenthesis.)
Line 903:
say '──────── enter the 1st expression to be evaluated:'
 
parse pull y.1x /*obtain an expression from the console*/
y.1= x /*save the provided expression for X. */
say
 
say '──────── enter the 2nd expression to be evaluated:'
 
parse pull y.2x /*obtain an expression from the console*/
y.2= x /*save the provided expression for X. */
 
say
Line 915 ⟶ 917:
say
 
interpret 'say "──────── value of the difference is: "' y.2 "-" '('y.1 ")" /* ◄─────┐ */
/* │ */
/* │ */
/*subtract 1st exp. from the 2nd──►──┘ */
 
drop x /*X var. is no longer a global variable*/
exit 0 /*stick a fork in it, we're all done. */</lang>
{{out|output|text=&nbsp;}}
Line 932 ⟶ 935:
──────── 2nd expression entered is: 12**2
 
──────── value of the difference is: 104100
</pre>