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

Wednesday, August 07, 2002

[99 Bottles of Beer] - one Program in 356 languages.
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
It looks to me like the first line should actually be: FOR X=99 TO 1 STEP -1.

My team of programming experts agree that this program is in error, and starts at 100.
via [ everlasting blort ]