int i = 0;

while (i < 10)
{
    i++;

    if (i == 5) break; //Exit from the loop when i=5.
                        //Iteration 6-9 will not be executed. 
    printf("Loop iteration %d\n", i);
}