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"
This is still wrong.

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

That's not right!

No comments:

Post a Comment