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:-
<!--[if !supportLists]-->1. <!--[endif]-->Start
<!--[if !supportLists]-->2. <!--[endif]-->Input
<!--[if !supportLists]-->3. <!--[endif]-->Processing
<!--[if !supportLists]-->4. <!--[endif]-->Output
<!--[if !supportLists]-->5. <!--[endif]-->Stop
E.g.
<!--[if !supportLists]-->1. <!--[endif]-->Start
<!--[if !supportLists]-->2. <!--[endif]-->Let a=10, b=20
<!--[if !supportLists]-->3. <!--[endif]-->c=a+b
<!--[if !supportLists]-->4. <!--[endif]-->Print c
<!--[if !supportLists]-->5. <!--[endif]-->Stop
Merits/Advantages of Algorithm
<!--[if !supportLists]-->1. <!--[endif]-->It makes the program easy to read and understand.
<!--[if !supportLists]-->2. <!--[endif]-->It makes the program portable and efficient.
<!--[if !supportLists]-->3. <!--[endif]-->It displays easy steps of processing.
<!--[if !supportLists]-->4. <!--[endif]-->It simplifies the modification and to update of the existing program.
<!--[if !supportLists]-->5. <!--[endif]-->It provides the facility for testing a program at developing stage.
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:-
<!--[if !supportLists]-->1. <!--[endif]-->Start
<!--[if !supportLists]-->2. <!--[endif]-->Input
<!--[if !supportLists]-->3. <!--[endif]-->Processing
<!--[if !supportLists]-->4. <!--[endif]-->Output
<!--[if !supportLists]-->5. <!--[endif]-->Stop
E.g.
<!--[if !supportLists]-->1. <!--[endif]-->Start
<!--[if !supportLists]-->2. <!--[endif]-->Let a=10, b=20
<!--[if !supportLists]-->3. <!--[endif]-->c=a+b
<!--[if !supportLists]-->4. <!--[endif]-->Print c
<!--[if !supportLists]-->5. <!--[endif]-->Stop
Merits/Advantages of Algorithm
<!--[if !supportLists]-->1. <!--[endif]-->It makes the program easy to read and understand.
<!--[if !supportLists]-->2. <!--[endif]-->It makes the program portable and efficient.
<!--[if !supportLists]-->3. <!--[endif]-->It displays easy steps of processing.
<!--[if !supportLists]-->4. <!--[endif]-->It simplifies the modification and to update of the existing program.
<!--[if !supportLists]-->5. <!--[endif]-->It provides the facility for testing a program at developing stage.