how to write a string to the console c# code example Example: how to write a string to the console c# Console.WriteLine("Hello World")