answersLogoWhite

0

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
}

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
BeauBeau
You're doing better than you think!
Chat with Beau
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao

Add your answer:

Earn +20 pts
Q: What is the body of a loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp