The loop will execute 5 times. Initially, the value of i is 0, and since it is a do-while loop, the loop body executes first, printing i and then incrementing it. After each iteration, the condition i < 5 is checked. The loop will run as long as the condition is true, so the loop runs when i is 0, 1, 2, 3, and 4. When i becomes 5, the condition is false, and the loop terminates.