Which pair of loops causes a statement or set of statements to repeat as long as a condition is true?

1 answer

Answer

1197536

2026-07-07 14:26

+ Follow

A while loop repeats until the condition becomes false, and may never execute:

int a = 4;

while (a > 5)

{

//Do something

}

or

int a = 4;

while (a > 0)

{

//Do something

a--;

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.