© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
40 replies
Ronnie

✅ User input

using System;

namespace CSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("What is your name?: ");

            string name = Console.ReadLine();

            Console.WriteLine("Your username is " + name);

        }
    }
}
using System;

namespace CSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("What is your name?: ");

            string name = Console.ReadLine();

            Console.WriteLine("Your username is " + name);

        }
    }
}
Idk VScode wont print out their name in the debug console
image.png
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

✅ User Input
C#CC# / help
4y ago
Delay User Input
C#CC# / help
2y ago
✅ User input issue
C#CC# / help
3y ago
❔ Validating user input
C#CC# / help
3y ago