notes3 - What we learned recently ifelse selection...

Info icon This preview shows pages 1–7. Sign up to view the full content.

if…else selection statements Ternary conditional operator Logical Operators while repetition statement Nested control structures Reading for this week and next week: • Chap. 4 (skip 4.7)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Assignment operators abbreviate assignment expressions c = c + 3; can be abbreviated as c += 3; Statements of the form variable = variable operator expression can be rewritten as variable operator= expression Examples of other assignment operators: d -= 4 ( d = d – 4 ) e *= 2 ( e = e * 2 ) f /= 3 ( f = f / 3 ) g %= 7 ( g = g % 7 )
Image of page 2