(Solved):Q: how many times i…:…

Question:

Question

how many times is the body of loop below executed?

int ounter=10;

while (counter<20)

{

counter+=2;

} //end while

Expert Answer:

Step 1

Actually, in while loop up to condition true the statement will execute. whenever condition false come out of the loop.

Step 2

Actually, answer is 5 times is the body of loop below executed

We are so grateful

Scroll to top