C#C
C#3y ago
Juliandyce

❔ searching mistake

namespace App2
{
public class Program14
{
private static void SayHello()
{

Console.Write("What is ur name?");
string name = Console.ReadLine();
Console.WriteLine("Hello {0}", name);
}

static void Main(string[] args)
{
SayHello();
}
}
}

CS1022 Type or namespace definition or end of file expected.
Was this page helpful?