The program will exit the outer loop directly if inner loop ends, so the outer do {} while() is redundant.
Block