Labels

Categories: Food | Travel | Beer | Wine | Boston | Humor | TV | Tech | Pop Culture | Politics | Golf | Video | Photo | Auto
Sponsored: Samsung | Cadillac | Volt | GMC | AT&T | Gear List: Cameras, Lights, Microphones, etc.
More: SteveGarfield.com | Steve Garfield's Video Blog (archived 6/19/2013)
“As an Amazon Associate I earn from qualifying purchases.” | Mastodon

Friday, September 12, 2003

[99 Bottles of Beer] - BASIC
10 REM Basic version of 99 bottles of beer
20 FOR X=100 TO 1 STEP -1
30 PRINT X;"Bottle(s) of beer on the wall,";X;"bottle(s) of beer"
40 PRINT "Take one down and pass it around,"
50 PRINT X-1;"bottle(s) of beer on the wall"
60 NEXT
This is still wrong.

You've got to change LINE 20 to X=99 otherwise it'll start at 100.

That's not right!