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 the + character to add a variable to another variable : Continue reading C# Display Variables