In do-while loop, the code block is executed first, and then the condition is evaluated. If the condition is true, the loop continues executing the code block. If the condition is false, the loop terminates, and program control moves to the next statement after the loop.