Algorithms is used for solve the problem step by step. It is the part of Software Designing. An Algorithm defines as the step by step method that can be carried out for solving programming problems. An Algorithm tells Computer that how to solve the problem Systematically to get desired output. We follow following steps to design an algorithm.Step 1 – START
It represents beginning of the algorithm.

Step 2 – DECLARE
The variables used in algorithm are declared in this step.

Step 3 – INPUT
Here we input the values

Step 4 – FORMULA
The required result is generated in this step.

Step 5 – OUTPUT
It displays the output or result.

Step 6 – STOP
It is an end of Algorithm