News

Be sure to indent the statements to repeat in the loop ... infinite (or endless) loop Be sure to indent the statements to repeat in the loop Let's see examples. #1 print all even numbers from 1 to 20 ...
However, infinite loops can also be used to ensure a program does run forever, for example the program that controls a traffic light.