There are different techniques that are used to analyze and design a program. We will use the flow chart technique. A flow chart is a pictorial representation of a program. There are labeled geometrical symbols, together with the arrows connecting one symbol with other.
A flow chart helps in correctly designing the program by visually showing the sequence of instructions to be executed. A programmer can trace and rectify the logical errors by first drawing a flow chart and then simulating it.
The flow chart for the if structure is shown in the figure below.

For previous lesson click here: Conditional Statements
For next lesson click here: IF Sample Program 1
A flow chart helps in correctly designing the program by visually showing the sequence of instructions to be executed. A programmer can trace and rectify the logical errors by first drawing a flow chart and then simulating it.
The flow chart for the if structure is shown in the figure below.

For previous lesson click here: Conditional Statements
For next lesson click here: IF Sample Program 1
the easiest way to learn programming
introduction to programming
Flow Charting