1

hint: what happens in the code when it reaches the lines of code that say return? hint2: what happens to new_pop, if new_pop is less than end_pop, and new_pop never changes?


1

Right now your code is just printing m, bottles is only defined, it is never called. If you want to declare a variable, but not initialize it, int b; is what you would write. int b = b; assigns a new variable (b) to the previous b, of which you have none. In "int bottles(int b)", you're saying you want a function ('bottles') who will take an argument ('b');...


Only top voted, non community-wiki answers of a minimum length are eligible