[an error occurred while processing this directive]
99 Bottles of Beer on the Wall
The Task
Sing "99 Bottles of Beer on the Wall".
The Program
[an error occurred while processing this directive]
The Sample Run
[an error occurred while processing this directive]
The Lesson
- Don't test floating point numbers for equality.
- The culprit is that 1/5 is not a terminating fractional number in
base 2 (similar to 1/3 in base 10).
[an error occurred while processing this directive]
Saturday, 15-Feb-1997 13:41:50 EST