Introduction to For loops and Arrays

While coding in any object-oriented programming language, you may across the difficulty to rewrite the same instance of code over and over again to repeat a (set of) specific command(s) for a predetermined number of times and thanks to For loops you don’t have to rewrite that segment multiple times in order to overcome this problem, instead sandwich the statements with the For loop and specify your need. Another very important concept called Arrays is used to represent a range of continuous values with a common name. A good example for an array can be a[5] where a is variable with 5 values ranging from 0 to 5. You can download/view the presentation file here or watch the official video tutorial for the complete demonstration.