An algorithm to find the largest among three different numbers
How to start writing algorithm : Step by Step solve the problem
- Problem Description – Find description of the problem.
- Problem Analysis – Analyze the problem.
- Start writing steps to resolve the problem in your language.
- Re-analyze the steps and try to add more details.
- Final Review
An algorithm to find the largest among three different numbers
Step 1: Start Step 2: Declare variables a,b and c. Step 3: Read variables a,b and c. Step 4: If a>b If a>c Display a is the largest number. Else Display c is the largest number. Else If b>c Display b is the largest number. Else Display c is the greatest number. Step 5: Stop