The books solution, is definitely cleaner, and the biggest difference I can see is the books solution is actually sorting the variables, rather than just changing the display order. In terms of efficiency, displaying stuff to the console is more efficient than popping up message boxes.
A Dr. Sharmila Anandasabapathy, MD , Gastroenterology, answered on behalf of The Mount Sinai Health System. Colon cancer is very curable and survivable provided detection is early. In this video, Sharmila Anandasabapathy, MD, a gastroenterologist, explains that later detection can result in lower survivability rates.
All men are at risk of prostate cancer, so it is important to talk with your doctor to make an informed decision. Detecting prostate cancer early gives you the best chance of living longer. In fact, when it is caught early, the 5-year survival rate is over 99 percent.