Thursday, October 16, 2014

What is Algorithm?



What is Algorithm?

  • A Step by Step Solution of any Program or Problem is called Algorithm.
  • Algorithm can be written in any language from natural language like English, French
  • Algorithm can be involve(Add) any number of the steps.
  • The Algorithm is the basic technique used to get the solution of problem or program.
  • First Step in Algorithm is START Step and Last step is END/STOP Step.

Example:-


Write an Algorithm to make sum of two numbers and print it.


Step 1 : START
Step 2 : Input number in Variable A & B Step 3 : SUM = A + B
Step 4 : Print SUM
Step 5 : STOP