Confirming do...while statement