Programming Basics #27 For Loop

http://learn-share.net/programming-basics-course/
Programming Course. The Basics of Programming.
#27 For Loop

Learn to code.

Creating a for loop

The while loop, is the classic loop in C base languages.

And after a look to a few, you realise, that a pattern begins to remerge. That you always have to deal with the same elements.

Regardless in what code you put in to your loop, rather be one line or 100 of them, You dealing with, setting up an index to keep track of the loop, and you have to do out side it self, them you will be checking the condition, and then you have to make sure you increment the index, inside the loop, but at the end of it.

So you always have this 3 peaces going on, to have a successful loop.

Sense this is so common model, that actually exists a statement that bring this 3 peaces together.

Published
Categorized as Videos