Algorithms


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 -

  1. Language independent
  2. Simple, complete, unambiguous, step by step program flow.
  3. No standard format or syntax required. 
  4. 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

Post a Comment

0 Comments