====================== Largest Value of Three ====================== -IAN! idallen@ncf.ca Here is 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 and second numbers: if first is larger than second, copy first to second Compare the second and third numbers: if second is larger than third, copy second to third output third 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. You can extend this algorithm slightly to sort three numbers. Again, this is much shorter than doing it with a set of nested IF statements!