Program flow 2

?
  • Created by: Tomiwaq
  • Created on: 03-05-19 10:31
View mindmap
  • Program flow 2
    • Conditions
      • DO UNTIL, WHILE, DO WHILE loops are similar but have subtle differences
    • DO UNTIL loops
      • Controlled by a condition at the end of the loop
      • Keep going until the condition is true
      • Always run the code inside them at least once
      • You get an infinite loop if the condition is never true
    • WHILE loops
      • Controlled by a condition at the start of the loop
      • Keep going while the condition is true
      • Never run the code inside them if the condition is initially false
      • You get an infinite loop if the condition is always true
    • DO WHILE loops
      • Controlled by a condition at the end of the loop
      • Keep going while the condition is true
      • Always run the code inside them at least once
      • You get an infinite loop if the condition is always true

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming resources »