![]()
Module 5: Programming, Logic, Loops, Selection Statement
Goals of this module:
- Introduce Logical Operators
- Introduce Repetition Statements
- for loop
- When you know ahead of time how many time you want to repeat a sequence of commands. This construction can count for you.
- while loop
- When you know ahead of time that some condition will occur that can be tested. It is crucial that you know that this condition will be satisfied to avoid a loop that runs forever (an infinite loop
- Introduction Selection Statement
- if end
- if else end
- if elseif else end
- switch case end
- This construction is not covered in our text, but I feel it belongs in this list of statements.
Page author: Dr. Kris Stewart
URL: http://www.stewart.cs.sdsu.edu/cs205/module /index.html
Last updated: , 1998