View Full Version : 99 bottles problem

04-03-2013, 02:51 PM
I have been working on this assignment and I can't seem to figure out why it won't work. I am not sure if my string variable "number" is correct, or if the problem is something else. Can anyone take a look at it and give me some advice/direction?


04-03-2013, 05:09 PM
Your solution has a couple of issues.
1. You decrement the numeric variable bottles. This is good.
2. However, you print the string variable number. This is not good.
The solution is to print your numeric variable bottles. To do this you use the function (functions tab) 'what as a string' in your say method.

Now delete the string variable number, because it is not used.

Check this file.

03-26-2018, 01:49 PM