99 bottles of beer: Difference between revisions
Content added Content deleted
imported>Rowsety Moid No edit summary |
|||
Line 3,708: | Line 3,708: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
<syntaxhighlight lang="easylang"> |
<syntaxhighlight lang="easylang"> |
||
proc |
proc getPlural num . word$ . |
||
⚫ | |||
if num = 1 |
if num = 1 |
||
word$ = "bottle" |
word$ = "bottle" |
||
else |
|||
⚫ | |||
. |
. |
||
. |
. |
||
# |
# |
||
i = 99 |
|||
repeat |
|||
call checkPlural i pluralWord$ |
|||
getPlural i bottle$ |
|||
⚫ | |||
print i & " " & |
print i & " " & bottle$ & " of beer on the wall" |
||
print i & " " & bottle$ & " of beer" |
|||
print "Take one down, pass it around" |
print "Take one down, pass it around" |
||
i -= 1 |
|||
until i = 0 |
|||
getPlural i bottle$ |
|||
⚫ | |||
⚫ | |||
else |
|||
⚫ | |||
. |
|||
print "" |
print "" |
||
. |
. |
||
⚫ | |||
</syntaxhighlight> |
</syntaxhighlight> |
||