Algorithm and Flowchart

 Algorithm and Flowchart

Algorithm: An algorithm is a set of instructions which when executed accomplish a particular task.

 

Eg. Algorithm for addition of two numbers.

Step 1: Start

Step 2: Accept two numbers A and B as input

Step 3: perform addition C = A + B

Step 4: Print result C.

Step 5: Stop                             


Flowchart: It is pictorial or graphical representation of algorithm.

                                                      Flowchart Notations


     

 




Flowchart for addition of two numbers










Comments

Post a Comment

Popular posts from this blog

'C' program Structure : First 'C' Program ''Hello World"

History of "C" Programming Language

What is program Editing/Compiling/Error checking/Executing/Testing/Debugging?