Can you use a do-while loop instead?