24 lines
369 B
Plaintext
24 lines
369 B
Plaintext
# it is statically typed
|
|
#
|
|
# global number variable
|
|
n = 99
|
|
print n
|
|
# global array of numbers
|
|
a[] = [ 2.1 3.14 3 ]
|
|
#
|
|
proc foo .
|
|
# i is local, because it is first used in the function
|
|
for i = 1 to len a[]
|
|
print a[i]
|
|
.
|
|
.
|
|
foo
|
|
#
|
|
# string
|
|
domain$ = "easylang.online"
|
|
print domain$
|
|
#
|
|
# array of strings
|
|
fruits$[] = [ "apple" "banana" "orange" ]
|
|
print fruits$[]
|