Jump to content

99 Bottles of Beer/Basic: Difference between revisions

consolidate step 2 of 2
(consolidate step 2 of 2)
Line 526:
DATA "No more","Go to the store and buy some more. 99"
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}}===
781

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.