English
Topic 2. Data types, variables, operations, console input/output, and control flow constructs
Goal: learn to validate console input, select types, and build branches and loops with predictable boundaries.
Lecture contents
- Types, variables, and conversions — Values and variable declarations · Primitive types and ranges · Conversions and overflow
- Operations and console input — Operations and logical conditions · Console input and locale
- Branching: if and switch — if and the switch expression
- Loops and invariants — Loops and computation state · Invariants, boundaries, and test cases