









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Unary operator $operand
Is equivalent to saying
Increments the value of RUN
OUTPUT = 3
OUTPUT = 7 PART100 64+36 = 100
V = ARRAY(10, 1.0)
X = ARRAY(‘2:9’)
N = ARRAY(‘3,5’)
i = 1 ST = ARRAY(INPUT)
MORE ST = INPUT :F(GO)
i = i + 1 :(MORE)
GO
ST<1> = input from user
When index ‘i’ exceeds its range, jump to label ‘GO’
Take input from user
&TRIM = 1 WORDPAT = BREAK(&LCASE &UCASE) SPAN(&LCASE &UCASE "'-"). WORD COUNT = ARRAY('3:9',0) READ LINE = INPUT :F(DONE) NEXTW LINE WORDPAT = :F(READ) COUNT<SIZE(WORD)> = COUNT<SIZE(WORD)>+ 1 :(NEXTW) DONE OUTPUT = "WORD LENGTH NUMBER OF OCCURRENCES" I = 2 PRINT I = I + 1 OUTPUT = LPAD(I,5) LPAD(COUNT,20) :S(PRINT) END