// A "bubble sort" with three numbers
Given numbers a, b, c
IF a IS GREATER THAN b THEN
SWAP a AND b
END IF
// Now we know that a is larger than b, but we don't
// know whether or not b is larger than c
//
// So...
IF b IS GREATER THAN c THEN
SWAP b and c
END IF
// Now, at this point we know that c contains the largest of the
// three values.
// We don't know whether or not a is larger than b any more
// since b may have changed from what it was after the first
// step.
//
// So...
IF a IS GREATER THAN b
THEN
SWAP a AND b
END IF
//Taa-daa