====================== Largest Value of Three ====================== A student showed me an alternate way of calculating the largest number of three values, based on the bubble sort: Algorithm: Input three numbers into three memory locations Compare the first two numbers: if second is larger than first, copy second to first Compare first and third: if third is larger than first, copy third to first output first The advantage of this algorithm is that it is simpler than a set of nested IF statements (about half the code). The disadvantage is that it changes the input arguments, so that any further processing on them would not be possible.