Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Topic-variable/REXX/topic-variable.rexx
Normal file
7
Task/Topic-variable/REXX/topic-variable.rexx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/*REXX program shows something close to a "topic variable" (for functions/subroutines).*/
|
||||
parse arg N /*obtain a variable from the cmd line. */
|
||||
call squareIt N /*invoke a function to square da number*/
|
||||
say result ' ◄───' /*display returned value from the func.*/
|
||||
exit 0 /*stick a fork in it, we're all done. */
|
||||
/*──────────────────────────────────────────────────────────────────────────────────────*/
|
||||
squareIt: return arg(1) ** 2 /*return the square of passed argument.*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue