What is Algorithm?.Write an algorithm to add two numbers ?




Algorithm :-
                    

                An algorithm is a method of solving a problem with step by step logical procedure. algorithm is the best way to understand and analyze mathematical problems step by step.



Write an algorithm to add two numbers:-



Step 1 : START 

Step 2 : Declare variables a,b and sum.

Step 3 : Read the values of variable a and b.

Step 4 : calculate Sum = a + b .

Step 5 : Display sum of a and b.

Step 6 : STOP 










Write an algorithm to add two integer numbers
An algorithm to add two numbers




















Comments