Algorithms -
An algorithm is a set of well-defined instructions in a sequence to solve problem. If algorithm is written in the computer programming language, then such a set of instructions is called a program. Algorithm is a stepwise presentation of program in simple english.
Characteristics of algorithm -
- Language independent
- Simple, complete, unambiguous, step by step program flow.
- No standard format or syntax required.
- Helpful to understand problems and plan out solution
Example- Add two number program
Step-1: Start
Step-2: Declare variables num1, num2 and sum
Step-3: Read value for num1 and num2
Step-4: Add num1 and num2 and assign the result to sum.
Step-5: Display sum.
Step-6: Stop
0 Comments