Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/String-length/REXX/string-length.rexx
Normal file
11
Task/String-length/REXX/string-length.rexx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*REXX program displays the lengths (in bytes/characters) for various strings. */
|
||||
/* 1 */ /*a handy-dandy over/under scale.*/
|
||||
/* 123456789012345 */
|
||||
hello = 'Hello, world!' ; say 'the length of HELLO is ' length(hello)
|
||||
happy = 'Hello, world! ☺' ; say 'the length of HAPPY is ' length(happy)
|
||||
jose = 'José' ; say 'the length of JOSE is ' length(jose)
|
||||
nill = '' ; say 'the length of NILL is ' length(nill)
|
||||
null = ; say 'the length of NULL is ' length(null)
|
||||
sum = 5+1 ; say 'the length of SUM is ' length(sum)
|
||||
/* [↑] is, of course, 6. */
|
||||
/*stick a fork in it, we're done.*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue