• Input: Any number
• Process: Check whether the number is even or not
• Output: Message “Even” or “Odd”
Pseudocode of the algorithm can be written as follows:

The flowchart representation of the algorithm in shown in Figure.
Flowchart to check whether a number is even or odd
