C# Display Variables
Display Variables The WriteLine() method is often used to display variable values to the console window. To combine both text and a variable, use the + character: Example string name = “John”; Console.WriteLine(“Hello ” + name); You can also useā¦