99 Bottles of Beer/Basic: Difference between revisions
Content added Content deleted
Basicgames (talk | contribs) |
(99 Bottles of Beer/Basic in Chipmunk Basic) |
||
Line 140: | Line 140: | ||
END |
END |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
===Chipmunk Basic=== |
|||
{{works with|Chipmunk Basic|3.6.4}} |
|||
{{works with|GW-BASIC}} |
|||
<syntaxhighlight lang="qbasic">10 cls |
|||
20 s$ = "s" |
|||
30 for bottles = 99 to 1 step -1 |
|||
40 print bottles "bottle" s$ " of beer on the wall, " |
|||
50 print bottles "bottle" s$ " of beer." |
|||
60 print "Take one down and pass it around, " |
|||
70 if bottles = 2 then s$ = "" |
|||
80 if bottles > 1 then print (bottles-1)"bottle" s$ " of beer on the wall..." else print "no more bottles of beer on the wall..." |
|||
90 print |
|||
100 next bottles |
|||
110 print "No more bottles of beer on the wall," |
|||
120 print "no more bottles of beer." |
|||
130 print "Go to the store and buy some more," |
|||
140 print "99 bottles of beer on the wall." |
|||
150 end</syntaxhighlight> |
|||
===Commodore BASIC=== |
===Commodore BASIC=== |