While you're at it


#1


why I got infinite 1? totally confused.


#2

you increase num after your while loop, which is infinite because you increase num outside the loop


#3

gotcha!! Thank you !


#4