- 1
What is the least number of times the body of a while loop can be executed?
While loops
4 Answers
+ 2
0
+ 1
@Meharban the point was to get them to figure it out so they udnerstood why the answer was 0 and that's why. At the top of the loop the condition gets evaluated and if the condition is false it skips the body of code.
0
Well a while loop works by evaluating the condition within the parantheses at the top and then enters the body of code if it evaluates to true. So if the condition is false, does it enter the loop?
0
No @Alexandre