Reading three words and sorting them in lexicographic order
- by Derrick
I am trying to create a program that asks the User to type three words and sort them in lexicographic order.
EXAMPLE;
Enter three words separated by spaces:
Pear Orange Apple
Apple
Orange
Pear
The program is working fine (if I attempt the above example) except for one type of combination example that I will show below.
…