© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
41 replies
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Visual Studio Code not running C#
C#CC# / help
3y ago
✅ Problem running my code
C#CC# / help
3y ago
✅ Benchmarks not running
C#CC# / help
2y ago