Enter your Sign on user name and password.

Forgot password?
Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of C#
  • Discussion

  • Study Guides

  • Table of Contents

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Sign up for Educator.com

Membership Overview

  • Unlimited access to our entire library of courses.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lesson files for programming and software training practice.
  • Track your course viewing progress.
  • Download lecture slides for taking notes.
  • Learn at your own pace... anytime, anywhere!

Iterations & Looping

  • for loops allow you to iterate through a predefined loop of values
  • foreach loops are used when you don’t know how many iterations you need
  • while and do { } while() loops need three things:
    • A loop control variable
    • A comparison to a sentinel value
    • An exit to the loop
  • If there is no way of ending the loop, it is an infinite loop
  • while checks the loop control variable first, do…while checks after at least one iteration of the loop