C#C
C#3y ago
Fallzy

❔ Code not running.

Hey guys. I've just started learning C# today and I made the following code

internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Whats your name?");
string userName = Console.ReadLine();
Console.WriteLine("Hello " + userName + " Welcome");
}
}

I think everything should be fine but its not running at all, it shows an error around Console.ReadLine() and Im not really sure how to fix it.
Was this page helpful?