Lessons
Topics covered
- Assignment operator and compound assignments (+=, -=, *=, /=)
- Arithmetic operators: +, -, *, /, %
- Integer vs floating-point division
- Operator precedence
Topics covered
- Increment and decrement operators (++, --)
- Relational operators: ==, !=, <, >, <=, >=
- Logical operators: &&, ||, !
- The ternary operator
Topics covered
- if, else if, else structure
- Nested if statements
- Boolean conditions and expressions
Topics covered
- switch/case structure and syntax
- The break and default keywords
- When to use switch vs if-else
Topics covered
- Structure and syntax of while loops
- Loop conditions and termination
- Infinite loops and how to avoid them
Topics covered
- Structure and syntax of do-while loops
- Difference between while and do-while (guaranteed first execution)
- Input validation use case
Topics covered
- Structure of for loops: initialisation, condition, increment
- Counting loops and iteration patterns
- Range-based for loops
Topics covered
- Nesting loops inside other loops
- The break and continue keywords
- The exit() function