Sample Exercises
Basic: Sort Words
Write a program that asks the user to enter a list of words. Sort the list and print the sorted results. Do not use a loop to do this exercise. Sample output:
Please enter several words: perl is so much fun! In sorted order: fun! is much perl so
Solution for Sort Words
SolutionLast updated:
Copyright © 1995-2008 William R. Ward dba Bay View Training. All Rights Reserved. “Bay View Training”, “Bay View Consulting Services”, “Bay View Software”, the sailboat logo, and the domain name “bayview.com” are trademarks and/or service marks of William R. Ward dba Bay View Training. For more information, contact training@bayview.com
