Pseudo code
Author: Ravi Poswal
The Pseudo code is neither an algorithm nor a program. It is an abstract form of a program. It consists of English like statements which perform the specific operations. It is defined for an algorithm. It does not use any graphical representation.
Advantages:
* Easy to read,
* Easy to understand,
* Easy to modify.
Example 1. Write a pseudo code to perform the basic arithmetic operations
- Read n1, n2
- Sum = n1 + n2
- Diff = n1 – n2
- Mult = n1 * n2
- Div = n1/n2
- Print sum, diff, mult, Div
- End.
RANREV INFOTECH