What is the body of a loop?

1 answer

Answer

1104715

2026-07-07 10:55

+ Follow

The "body" of a loop is the code being executed on each iteration.

while(x < 10) {

// beginning of body
doStuff();
printStuff();
doOtherStuff();
++x;
// end of body
}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.