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)
has intentionally blurred sections.
Sign up to view the full version.
•Assignment operators abbreviate assignment expressionsc = c + 3; can be abbreviated asc += 3;•Statements of the formvariable = variableoperatorexpressioncan be rewritten asvariable 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 )