Please enable JavaScript to use CodeHS

Introduction to Computer Science in C++

Program Control

In this module, students will extend their skills as they learn about basic program control, including if statements, while loops, and for loops.

Lessons

3.1 Comparison and Logical Operators

  • Comparison and Logical Operators
  • Quiz: Comparison and Logical Operators
  • Basic Comparison Operators
  • Compound Operators
  • Driver's License
  • +1 more

3.2 If Statements

  • If Statements
  • Quiz: If Statements
  • Basic If/Else Examples
  • Extended If/Else Examples
  • Guided Activity: Creating a Decision Tree
  • +2 more

3.3 While Loops

  • While Loops
  • Quiz: While Loops
  • Basic While Loops
  • Running Average
  • Guess My Number
  • +1 more

3.4 For Loops

  • For Loops
  • Quiz: For Loops
  • Basic For Loops
  • Using Different Increments
  • Random Dice Loop
  • +1 more

Courses that include this module