99 bottles of beer: Difference between revisions

Content added Content deleted
Line 3,708: Line 3,708:
=={{header|EasyLang}}==
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
<syntaxhighlight lang="easylang">
proc getPlural num . word$ .
func$ bottle num .
word$ = "bottles"
if num = 1
if num = 1
word$ = "bottle"
return "bottle"
.
.
return "bottles"
.
.
#
#
i = 99
i = 99
repeat
repeat
getPlural i bottle$
print i & " " & bottle i & " of beer on the wall"
print i & " " & bottle$ & " of beer on the wall"
print i & " " & bottle i & " of beer"
print i & " " & bottle$ & " of beer"
print "Take one down, pass it around"
print "Take one down, pass it around"
i -= 1
i -= 1
until i = 0
until i = 0
getPlural i bottle$
print i & " " & bottle i & " of beer on the wall"
print i & " " & bottle$ & " of beer on the wall"
print ""
print ""
.
.