Professional Documents
Culture Documents
AND ENGINEERING
SUBMITTED TO : SUBMITTED BY :
INTRODUCTION :
Algorithms and flowcharts are two different procedure used for creating new programs,
especially in computer programming. An algorithm is a step-by-step analysis of the process
and a flowchart explains the steps of a program in a graphical way.
DEFINATION OF ALGORITHM :
A programming algorithm is a computer procedure to tell the computer precisely what steps
to take to complete a program or to reach a goal.
DEFINATION OF FLOWCHART :
A programming flowchart is a diagram with a set of standard symbols to visualize the
algorithm.
ALGORITHM
STEP 1 : Start .
STEP 2 : Input three numbers(A,B,C) from the user
STEP 3 : If A>B then go to step 4, otherwise go to step 2 .
STEP 4 : If A>C then go to step 5, otherwise go to step 7 .
STEP 5 : If C>B then go to step 9, otherwise go to step 6 .
STEP 6 : Interchange B and C , then go to step 9 .
STEP 7 : Interchange A and C , then go to step 3 .
STEP 8 : Interchange A and B , then go to step 3 .
STEP 9 : Print ascending order of the numbers .
STEP 10 : Stop .
Start
FLOWCHART :
Input
A,B,C
True False
A>B
False True
True False
A>C B>C
True
True False False
B>C C>A>B C>B>A C>A
stop
THANK YOU