Tag Archives: conditionals

Conditionals and Loops

Conditionals and Loops

This is Part IV of Understanding Programming: A Primer, an exclusive series for EDUKWEST designed to teach you the basics of computer programming.  This series is designed to be a tutorial and you will be the most successful if you work through the tutorial with your text editor open. Key in the code as it appears and try to make it run correctly yourself.  You’ll find that by the end of this series, you’ll be able to develop simple programs and understand the process of computer programming.

In the last article we took a close at variables.  We’re going to be using variables again in this lesson. First, we’ll be using variables to make decisions and execute branching within our program.  Then we’ll use variables to create loops which iterate through a portion of code a number of times.  The two concepts that we cover this month are found in just about every programming language.  So far, the programs we’ve written are all serial– they go through the same steps in the same order each time.  With the addition of conditionals and loops to our programming repertoire, you’re programs will be able to vary their path based on conditions you set.  Sounds like fun, right?

Continue reading