While loop wont break unless there is a print statement in it

Printable View