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

  1. Read n1, n2
  2. Sum = n1 + n2
  3. Diff = n1 – n2
  4. Mult = n1 * n2
  5. Div = n1/n2
  6. Print sum, diff, mult, Div
  7. End.