Use a while loop.