Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<String> list1 = new List<string>();
- List<string> list2 = new List<string>();
- list1.Add("War");
- list1.Add("Clash");
- list1.Add("Game");
- list1.Add("Fire");
- list1.Add("Saga");
- list1.Add("Clan");
- list1.Add("Empire");
- list1.Add("Battle");
- list1.Add("Age");
- list1.Add("Etc");
- foreach (string str in list1)
- {
- for (int i = 0; i < list1.Count; i++)
- {
- string str1 = str + " of " + list1[i];
- list2.Add(str1);
- }
- }
- list2.Sort();
- foreach (string str in list2)
- {
- Console.WriteLine(str);
- }
- Console.WriteLine("");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement