How to solve last exercise on while loops i.e. "all on your own"?



i dont know what's wrong bt its so irritating now ,nt able to sort it out guys. anyone who can help.


This is an infinite loop. Please note that initial value of $ask is true.

Your loop will run as long as $ask is true, but you don't change value of $ask in the body of the loop so it will never stop :slight_smile:

Change the initial value of $ask to false or change this value inside the body of the loop.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.