Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# Getting User Input

Console.Write("Enter your name:");
           string name = Console.ReadLine();
            Console.Write("Enter your age:");
            string age = Console.ReadLine();
           
            Console.WriteLine("Hello" + name + " you are " + age);
			Console.ReadLine();
 
PREVIOUS NEXT
Tagged: #Getting #User #Input
ADD COMMENT
Topic
Name
5+4 =