Sanjeev Sultania Cse, Bkbiet
Sanjeev Sultania Cse, Bkbiet
In programming, algorithms are the set of well defined instruction in sequence to solve a program. An algorithm
should always have a clear stopping point.
Algorithms are not the computer code. Algorithms are just the instructions which give clear idea to write the
computer code.
2. Write an algorithm to find the largest among three different numbers entered by user.
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
Sanjeev Sultania
CSE, BKBIET
Page 2 of 2