
Most programs consist of 3 main components – Sequence, Selections (Conditions) and Loops.
Let’s write a program to get all the numbers divisible by 3 between 0 and 100.
The flowchart for the algorithm would be as follows. In this example, we see that this program has a sequence of conditions and loops.