C-18-Q018mediumsingle_mcq
To exit a running while loop intentionally, the loop body should:
To exit a running while loop intentionally, the loop body should:
- aPrint a value
- bEventually make the condition false
- cUse only constants
- dAvoid all variables
ব্যাখ্যা
To stop a running while loop, something in the body must eventually change a value so that the condition turns false. Without this, the loop would continue indefinitely.