RosettaCodeData/Task/Variables/EasyLang/variables.easy

24 lines
368 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.dev"
print domain$
#
# array of strings
fruits$[] = [ "apple" "banana" "orange" ]
print fruits$[]