Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
10
Task/String-length/OPL/string-length.opl
Normal file
10
Task/String-length/OPL/string-length.opl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
REM https://github.com/Eva-Broccoli/OPL-Rosetta-Code/blob/main/Strlngth.opl
|
||||
REM Strings are stored with one character per byte, with a leading byte containing the string length, thus byte length is character length plus one byte.
|
||||
PROC main:
|
||||
LOCAL s$(100)
|
||||
PRINT "Please enter a string."
|
||||
INPUT s$
|
||||
PRINT "Character length:",LEN(s$)
|
||||
PRINT "Byte length:",LEN(s$)+1
|
||||
GET
|
||||
ENDP
|
||||
Loading…
Add table
Add a link
Reference in a new issue