Lesson 2.3 The iterative command
This is the third and final tool at the disposal of the coder. They are more frequently referred to as loops. It gets to the root of one of the reasons we employ computers: to do the repetitive, mindless work for us. It is also one area that heavily employs variables; it couldn’t really function without them.
In C# there are three main types of loops:
- A “do while” loop
- A “do until” loop
- A “for” loop
These are covered in the next 3 parts.