Link Search Menu Expand Document

Lesson 3 - Loops

Objectives

  1. Understand code blocks and variable scope.

  2. while loops: C# While Loop.
    • Print all the numbers from 1 to 20.
    • Refactor the “Progress Bar” solution using a while loop.
  3. for loops: C# For Loop.
    • Calculate the sum of all the numbers from 1 to 100

Home Assignments

  1. Multiples Of 3

  2. Sum Of Digits

  3. Perfect Squares

  4. Collatz Conjecture