Unit 5, Lesson 11, Bubble 9


I am anticipating the question of why test for a condition with a while loop when the value of a variable (num) is already false, prior to entering the loop. Why reset the value of num, just to run the loop? I guess I’m looking for a real life example to share with my students. Thanks for the help.

Oh wait, I guess to initialize the global variable - sorry guys