how to take input as a variable in C# code example
Example 1: c# console input
string userName = Console.ReadLine();
Example 2: c# input
Console.Write("words");
input = Console.ReadLine();
string userName = Console.ReadLine();
Console.Write("words");
input = Console.ReadLine();