3.7k views
2 votes
How many times is the body of the loop executed?

int i = 1;

while (i<10)

{

cout << i;

if (i == 5)

break;

i++;

}

1 Answer

3 votes

Answer:

The loop will run 5 times.

User Rwst
by
4.1k points