This is an old revision of the document!


Table of Contents

Looping

For

For is a cycle operator that allows to specify the number of times when the same statements will be executed. In this way, similar to the loop function it allows to control the program execution. Each time when all statements in the body of the cycle are executed, is called the iteration. In this way, the cycle is one of the basic programming techniques that is used for all programs and automation in general.

The construction of a for cycle is the following:

for (initialization ; condition ; operation with the cycle variable) {
  //The body of the cycle
}

While

Do while

en/iot-open/programming_fundamentals_rtu/looping.1516716325.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0