Algorithms:


An algorithm is a series of finite steps carried out in a sequence for solving a problem. In other words, an algorithm defines a series of steps that leads to some desired result. Unlike flowcharts which don’t give many details about the series of steps involved in a program solving, algorithm provides the details of the steps involved in a program.


Some points that should be keep in mind while using algorithms as a tool for program planning:
  1. An algorithm should be simple, enough to understood by people.
  2. A good algorithm development is essential for designing an effective program.
  3. The various construction constitute the algorithm should be precise and should not repeat.
Step 1: Input the values of X and Y. 
Step 2: Calculate Sum, X+Y.
Step 3: Print the Result.
Step 4: Exit.

Previous                                                                                    Next

Powered by Blogger.