208,561 views
15 votes
15 votes
How many times is the body of the loop executed?

int i = 1;

while (i<10)

{

cout << i;

if (i == 5)

break;

i++;

}

User Fatherazrael
by
3.1k points

1 Answer

22 votes
22 votes

Answer:

The loop will run 5 times.

User Cortnee
by
2.4k points