Answers for "how to make an input in c#"

C#
10

c# input

Console.Write("words");
input = Console.ReadLine();
Posted by: Guest on April-10-2020
1

how to make an input in c#

string myName;

Console.WriteLine("Please, enter your full name here: ");
myName = Console.ReadLine();
Console.WriteLine("Hello, Mr. " + myName + "!");

Console.Key();

/* OR */

Console.WriteLine("Please, enter your full name: ");
string myName = Console.ReadLine();
Console.WriteLine("Hello, Mr. " + myName + "!");

Console.ReadKey();
Posted by: Guest on November-18-2020

Code answers related to "how to make an input in c#"

C# Answers by Framework

Browse Popular Code Answers by Language