Professional Documents
Culture Documents
(MIDTERM)
CODE LISTING:
using System;
namespace ConsoleApp11
{
class Program
{
static void Main(string[] args)
{
string[] names = new string[10];
for (int x = 0; x < names.Length; x++)
{
names[x] = Console.ReadLine();
}
Array.Sort(names);
for (int x = 0; x < names.Length; x++)
{
Console.WriteLine(names[x]);
}
}
}
}
SCREENSHOT: