Variables: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
|||
Line 1,810: | Line 1,810: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
<syntaxhighlight lang="text"> |
<syntaxhighlight lang="text"> |
||
# it is statically typed |
|||
# |
# |
||
# global number variable |
# global number variable |
||
Line 1,820: | Line 1,821: | ||
func f . . |
func f . . |
||
# i is local, because it is first used in the function |
# i is local, because it is first used in the function |
||
for i |
for i = 1 to len a[] |
||
print a[i] |
print a[i] |
||
. |
. |
||
Line 1,832: | Line 1,833: | ||
# array of strings |
# array of strings |
||
fruits$[] = [ "apple" "banana" "orange" ] |
fruits$[] = [ "apple" "banana" "orange" ] |
||
print fruits$[] |
print fruits$[] |
||
</syntaxhighlight> |
|||
=={{header|Eiffel}}== |
=={{header|Eiffel}}== |