99 Bottles of Beer Code
At first the code printed everything right until the end. At the end it printed "1 bottles of beer on the wall", which is gramatically incorrect. I fixed it so it prints "1 bottles of beer on the wall". I added an if statement that makes "bottles" into "bottle" if beernum is equal to 1. This was put inbetween the "System.out" code and the "No more bottles of beer on the wall" code so it worked.
No comments:
Post a Comment