Do loop not working

vaj4088:
NOTE: In programming, zero is often desirable. That is why do ... while is used so infrequently and why while (...) ... is used more often.

But in this case, do...while is the correct form.