Flowchart Examples: 46 Problems with Answers
Worked examples of Flowchart to try before you open each solution, then practice problems with answers.
Worked Examples
Example 1
easyShow solution
Answer
First step
Full solution
- 2. Step 2: Diamond = Decision (a yes/no question that creates a branch). Parallelogram = Input/Output (data entering or leaving the system).
- 3. Step 3: Arrows connect the symbols to show the flow of control from one step to the next.
Example 2
mediumExample 3
mediumExample 4
mediumExample 5
mediumExample 6
mediumExample 7
mediumExample 8
mediumExample 9
hardExample 10
hardExample 11
hardExample 12
challengePractice Problems
Try each one, then open the solution to compare your method.
Example 1
mediumExample 2
hardExample 3
easyExample 4
easyExample 5
easyExample 6
easyExample 7
easyExample 8
easyExample 9
easyExample 10
easyExample 11
mediumExample 12
mediumExample 13
mediumExample 14
mediumExample 15
mediumExample 16
mediumExample 17
mediumExample 18
mediumExample 19
mediumExample 20
challengeExample 21
challengeExample 22
challengeExample 23
easyExample 24
easyExample 25
easyExample 26
easyExample 27
mediumExample 28
mediumExample 29
mediumExample 30
mediumExample 31
mediumExample 32
hardExample 33
hardExample 34
challengeWhat to focus on
Core idea: Flowcharts make control flow visible. They're especially useful for understanding loops and branching logic.
Common stuck point: Diamonds are for decisions (yes/no questions) only. Rectangles are for actions/processes.
Ask yourself: Are the steps drawn as shapes joined by arrows, with diamonds where the path splits on a yes/no answer?
Concept recap
A visual diagram that represents the steps of an algorithm using standard shapes: ovals for start and end, rectangles for processes or actions, diamonds for decisions (yes/no questions), parallelograms for input/output, and arrows to show the flow of execution between steps.
A flowchart is a board game track: you start on one square, follow the arrows, and some squares ask a question that sends you down one of two paths. Like a good game board, every path must lead to the finish or back into play. Unlike a game, nothing is left to chance: the same input always takes the same path.
Read the full lesson on FlowchartRelated concepts
Background knowledge
These ideas may be useful before you work through the harder examples.