Answers for "how to get input from a user in C#"

C#
5

how to take input in c#

using System;

namespace beginner
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("what is your Name:- ");
            string userName = Console.ReadLine();
            Console.WriteLine("Hello: " + userName);

        }
    }
}
Posted by: Guest on July-01-2021

Code answers related to "how to get input from a user in C#"

C# Answers by Framework

Browse Popular Code Answers by Language