top of page

~Fundamental Product Programming Skills (Iterators and For-loops)~

  • Writer: Archie
    Archie
  • Mar 19, 2019
  • 1 min read

In computer science, a for-loop is a control flow statement for specifying iteration, which allows code to be executed repeatedly.

In this Process Flowchart, showing an iteration, the process a for-loop goes through is presented. Once initialization happens, the condition is checked. If the current condition fits within the for-loop's specifications then whatever the loop scheduled to happen will happen. It is again checked to see if it remains true, if true the scheduled instructions continue. In the event that a condition is no longer true, the for-loop stops until it is again initialized.


In the event where a condition can never be false, you create a infinite loop.

Recent Posts

See All

Comentarios


bottom of page