Which of the following algorithms can be used to place any three numbers in the cor...
Check the final answer first, then review the worked steps.
Check the final answer first, then review the worked steps.
To sort three numbers, we must compare and swap to ensure the smallest is first, the middle is second, and the largest is third. Option C performs a bubble-sort-like sequence that guarantees the correct order.