Please enable JavaScript.
Coggle requires JavaScript to display documents.
(repetition:, binary:) - Coggle Diagram
repetition:
Count controlled:
▪ Repeats the same code a set number of times
▪ Uses a variable to track how many times the code
has been run
▪ This variable can be used in the loop
▪ At the end of each iteration the variable is checked
to see if the code should be run again
▪ FOR sets how many times the code should be
repeated
▪ NEXT tells the code to return to the start of the loop
▪ STEP sets how the variable should increment
Condition Controlled:
▪ Uses a condition to determine how many times
code should be repeated
▪ While loops will run whilst a condition is met and
use the statements WHILE and ENDWHILE
▪ Repeat loops will run until a condition is met and
use the statements REPEAT and UNTIL
binary:
Binary – A number system made up of 0 and
1 used by computers to store and represent
data such as numbers, sound, and graphics
▪ Also known as Base 2
▪ Computers use binary because the CPU
contains transistors, which are either on
or /off