Example of flowcharting:
Example
Problem statement: To find out whether a given number is even or odd.
Algorithm:
Step 1 Start
Step 2 INPUT the number n
Step 3 Find the remainder on dividing the given number by 2
if (remainder = 0) then
print "number is even"
else
print "number is odd"
Step 4 End
Representing this algorithm through flowchart helps in easier and better understanding of the algorithm :