Every loop needs a condition that eventually becomes false. Without that, your program runs forever. The termination condition is the state that makes the loop stop.
Think about what must be true inside the loop for it to end. If you write while (count < 10), then something inside the body must increase count toward . If nothing changes count, the condition stays true and the loop never exits.
Here is a pattern you'll see often:
int sum = 0;
int i = 1;
while (i <= 100) {
sum += i;
i++;
}
The variable i starts at and increases by each pass. When i hits , the condition i <= 100 becomes false, and the loop terminates. The update step (i++) drives the loop toward its end.