Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***************************************************************
- *
- * 24. Write a program that reads a list of words,
- * separated by spaces and prints the list in an
- * alphabetical order.
- *
- ***************************************************************/
- using System;
- using System.Linq;
- class PrintListInOrder
- {
- static void Main()
- {
- Console.WriteLine(String.Join(" ", Console.ReadLine().Split(' ').OrderBy(x => x)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement