99 Bottles of Beer/Basic: Difference between revisions

Content added Content deleted
(consolidate step 2 of 2)
Line 526: Line 526:
DATA "No more","Go to the store and buy some more. 99"
DATA "No more","Go to the store and buy some more. 99"
END</lang>
END</lang>

=={{header|GW-BASIC}}==

Just a basic loop counting down to one. No big deal. Note that at BOTTLES=1, it is not
grammatically correct.

<lang qbasic>10 FOR BOTTLES = 99 TO 1 STEP -1
20 PRINT BOTTLES " bottles of beer on the wall"
30 PRINT BOTTLES " bottles of beer"
40 PRINT "Take one down, pass it around"
50 PRINT BOTTLES-1 " bottles of beer on the wall"
60 NEXT BOTTLES
</lang>


==={{header|Integer BASIC}}===
==={{header|Integer BASIC}}===