This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:cprog:fall2024:projects:cnv0 [2024/10/01 16:40] – [do-while loops] tkastne1 | notes:cprog:fall2024:projects:cnv0 [2024/10/01 16:40] (current) – [while() loops] tkastne1 | ||
---|---|---|---|
Line 33: | Line 33: | ||
</ | </ | ||
- | The expression within parentheses will run every loop before the code block and is evaluated as a boolean | + | The expression within parentheses will run every loop **before** the code block and is evaluated as a boolean |
The code block will run only if the expression within the parentheses evaluates to true | The code block will run only if the expression within the parentheses evaluates to true |