Jump to content

99 Bottles of Beer/Basic: Difference between revisions

Line 755:
==={{header|QB64}}===
<lang vb>'CBTJD: 2020.03.08
A$ = " bottle": B$ = " of beer": C$ = " on the wall": D$ = " Take one down, pass it around": E$ = " No more "
FOR B = 99 TO 1 STEP -1
S$ = STRING$(ABS(B > 1), "s")
PRINT STR$(B); A$; S$; B$; C$: PRINT STR$(B); A$; S$; B$: PRINT D$
SELECT CASE B
CASE 2: PRINT STR$(B - 1); A$; B$; C$
CASE 1: PRINT E$; A$; "s"; B$; C$
CASE ELSE: PRINT STR$(B - 1); A$; S$; B$; C$
END SELECT
PRINT
NEXT</lang>
</lang>
 
==={{header|REALbasic}}===
306

edits

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