Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
17
Task/Array-length/OPL/array-length.opl
Normal file
17
Task/Array-length/OPL/array-length.opl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
REM https://github.com/Eva-Broccoli/OPL-Rosetta-Code/blob/main/Arraylen.opl
|
||||
PROC main:
|
||||
LOCAL array$(2,6),i%
|
||||
ONERR errhand
|
||||
array${1}="apple"
|
||||
array${2}="orange"
|
||||
i%=1
|
||||
WHILE 1
|
||||
IF array$(i%)<>""
|
||||
i%=i%+1
|
||||
ENDIF
|
||||
ENDWH
|
||||
errhand::
|
||||
ONERR OFF
|
||||
PRINT "Array length is",i%-1
|
||||
GET
|
||||
ENDP
|
||||
Loading…
Add table
Add a link
Reference in a new issue