Flowcharting A flowchart is a pictorial representation of a structured program. A flowchart is designed to represent visually the flow of execution through a program. As with pseudocode, a flowchart captures sequence, selection, and iteration. Arrows between these symbols indicate the program flow. An oval is used to show the beginning or end of a piece of code.
Execution begins at the oval labeled start .
Execution terminates at the oval labeled end . The arrow we follow depends on the answer to the question. An iteration statement is represented simply by pointing an arrow to a previous arrow in such a way as to create a loop. When we follow the arrow, we return to a previous point in the program and repeat our previous steps from that point forward. However, there must be a decision somewhere in the loop, providing us an opportunity to exit the loop.