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 ...
Consider this simple algorithm to count up in twos from one to a hundred: the variable ‘count’ is set to 1 the ‘while’ statement ... will never equal 100. Infinite loops can cause programs ...