Pages

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 ]