loop condition

3 moment(s) that assert this concept — showing 1–3 of 3

moderateTwo independent sources — corroborated, but not broadly
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] Timothy[2] [email protected][3] [email protected]
showing 3 of 3 moments
Timothy Cain · youtube · en
1The bug was caused by a for loop using less than or equal instead of less than, which allowed it to exceed a boundary and write invalid data.
“a for Loop that used a less than equal instead of a less than”
spoken · 322s · 2023-05-26
[email protected] · archiveorg · en
2The loop condition in a while loop must be checked before each iteration of the loop body.
“When it hits the while statement, it checks whether divisor is less than n, just like an if statement.”
spoken · 308s · 2017-03-16
[email protected] · archiveorg · en
3In Java, a while loop will not execute its body if the loop condition is false at the start.
“And if divisor is less than n, it won't execute the loop body even once.”
spoken · 314s · 2017-03-16