ALGORITHM

When we want to write a program it is firstly required to develop a working logic of the program that is to be written. Algorithm helps us to do this. It is a sequence of instruction to carry out in order to solve a program it is step by step continuing of any working logic.

Steps:-

1. Start

2. Input

3. Processing

4. Output

5. Stop

E.g.

1. Start

2. Let a=10, b=20

3. c=a+b

4. Print c

5. Stop

Merits/Advantages of Algorithm

1. It makes the program easy to read and understand.

2. It makes the program portable and efficient.

3. It displays easy steps of processing.

4. It simplifies the modification and to update of the existing program.

5. It provides the facility for testing a program at developing stage.