I have been trying to follow the walk through for pset1 and I cannot get my code to work for the first part of water. It will not let me execute the do-while loop.
I have written the code just like it instructs you to do in the walk through. I must admit, I have looked up how other people have done this, just to try and learn from it, not just to copy it and progress, and they haven't even used d-while loops. Does this mean their code is "less efficient" and they would get lower marks? I really want to get this done using a do-while loop rather than how I've seen others do it.
In the walk through, she runs you through a few different codes, and it gets a bit confusing because this is one she tells you to use, however I can't get it working doing it the way she has said to do it. Pictured below!
https://i.stack.imgur.com/Qc0MM.png
Thanks!