Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




Basic Concepts - Algorithm

An algorithm is a sequence of instructions or steps. These instructions are written in such a way that if they are executed in the specified sequence then user will get the required results.

E.g.

Algorithm to add two numbers is given below:

In this algorithm we will add two numbers A and B and will store the result in C.

Step 1- Input A.

Step 2- Input B.

Step 3- Set C: = A+ B.

Step 4- Write: ‘Sum of’, A,’ and ‘, B, ‘is ‘, C.

Step 5- Exit.

Share this article   |    Print    |    Article read by 3315 times
Author:
Ritika Sood
Lecturer in computer science....Love to do programming...Other interests are sports, freaking out with frnds, travel at beautiful places, watch movies, listen songs....
Related Articles: No related article
Related Interview Questions: No related interview question