Check out example codes for "c# console input". It will help you in understanding the concepts better.

Code Example 1

// Type your username and press enter
Console.WriteLine("Enter username:");

// Create a string variable and get user input from the keyboard and store it in the variable
string userName = Console.ReadLine();

// Print the value of the variable (userName), which will display the input value
Console.WriteLine("Username is: " + userName);

Code Example 2

input = Console.ReadLine();

Code Example 3

string userName = Console.ReadLine();

Learn ReactJs, React Native from