Professional Documents
Culture Documents
4
4
Introduction
Pseudo code is a combination of two words Pseudo and Code.’Pseudo’ means imitation and ‘code’ refer to
instruction written in the programming language.Pseudo code is not a real programming language.It is the
generic way of describing an algorithm without using any specific programming language-related notations.
Purpose- to define the procedural logic of an algorithm in a simple, easy-to- understand for its readers.
Consists of natural language-like statements that precisely describe the steps of an algorithm or program.
Pseudo code cannot be compiled and executed and there are no real formatting or syntax rules for writing
pseudo codes.
Features of Pseudocode
1. It uses plain English statements
2. It emphasizes on the design of the computer program
3. Focuses on the logic of the algorithm or program
4. It uses Structured English
5. Avoids language-specific elements
6. It is detailed and readable to draw an inference
7. It enables the programmers to concentrate on the algorithms.
8. Free of syntactical complications of programming language.
Example:
IF(condition) THEN
List of Actions
ELSE
List of different Actions
END IF
READ a,b,c
WRITE a is big
WRITE b is big
ELSE
WRITE c is big
END IF
3. Example: find sum of first 100 integers
INITIALIZE I to zero
DO WHILE (I <100)
INCREMENT I
END DO WHILE
PRINT SUM
STOP