Friday, May 14, 2010

C# .NET: Loops

What will you be learning?
For loops
While loops
Do loops

What is a loop?
A loop is a way to execute a piece of code repeatedly.  Going round and round until an end condition is met

Three expressions:

  1. Starting condition: eg i = 0
  2. Ending condition: eg when i is not < 101
  3. Update statement: eg increase i by 1

The slides used together with SPF Chapter 5 is embedded below.

To view the following slide in full screen: Click Menu > View Full Screen

0 comments:

Post a Comment