I have been going around and around on this and I'm finally coming here because it seems like my code is working properly. Below is my input and output: Input:
Task
Enter
twenty
words
from
the
keyboard
and
Display
them
In
alphabetical
order
Each
word
Should
be
on
new
line
Output:
alphabetical
and
be
Display
Each
Enter
from
In
keyboard
line
new
on
order
Should
Task
the
them
twenty
word
words