Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
6
Task/Topic-variable/REXX/topic-variable.rexx
Normal file
6
Task/Topic-variable/REXX/topic-variable.rexx
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/*REXX pgm shows something close to a "topic variable" (for funcs/subs).*/
|
||||
parse arg N /*get an arg from CL, maybe a 3? */
|
||||
say mysub(N) ' ◄───' /*invoke a function to square it.*/
|
||||
exit /*stick a fork in it, we're done.*/
|
||||
/*──────────────────────────────────MYSUB subroutine (function)─────────*/
|
||||
mysub: return arg(1)**2 /*return the square of passed arg*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue