Largest of three numbers
|
|
Start
Read A,B,C
Is A > B
Y
N
Y
Is A > C
N
N
Is B > C
Y
Print A
Print C
Print B
Stop
|
|
Step 1: Read three numbers in variables A,B and C
Step 2: Find A is greater than B and C, if so print the variable A
Step 3: If B is greater than A, find B is greater than C, if so print the variable B
Step 4: Else print the variable C
|
|