Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/String-case/REXX/string-case-6.rexx
Normal file
9
Task/String-case/REXX/string-case-6.rexx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*REXX program swaps the letter case of a string: lower ──► upper & upper ──► lower.*/
|
||||
abc = "abcdefghijklmnopqrstuvwxyz" /*define all the lowercase letters. */
|
||||
abcU = translate(abc) /* " " " uppercase " */
|
||||
|
||||
x = 'alphaBETA' /*define a string to a REXX variable. */
|
||||
y = translate(x, abc || abcU, abcU || abc) /*swap case of X and store it ───► Y */
|
||||
say x
|
||||
say y
|
||||
/*stick a fork in it, we're all done. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue