I am getting an error this is my first time coding anything at al the Error is:Method name expected

  • Thread starter Thread starter Kiltho
  • Start date Start date
K

Kiltho

Guest
using System;

namespace Alphabetical_order
{
class Program
{
static void Main(string[] args)
{
string[] abc ;
string one = (Console.ReadLine());
string two = (Console.ReadLine());
string three = (Console.ReadLine());
string four = (Console.ReadLine());
string five = (Console.ReadLine());
abc = new string[5](one, two, three, four, five);
Array.Sort(abc);
foreach (string i in abc)
{
Console.WriteLine(i);
}
Console.ReadLine();
}
}
}

Continue reading...
 
Back
Top