17 lines
332 B
Plaintext
17 lines
332 B
Plaintext
# create two streams (the ursa equivalent of arrays)
|
|
# a contains the numbers 1-10, b contains 11-20
|
|
decl int<> a b
|
|
decl int i
|
|
for (set i 1) (< i 11) (inc i)
|
|
append i a
|
|
end for
|
|
for (set i 11) (< i 21) (inc i)
|
|
append i b
|
|
end for
|
|
|
|
# append the values in b to a
|
|
append b a
|
|
|
|
# output a to the console
|
|
out a endl console
|