print console log c# code example
Example 1: c# print console
System.Diagnostics.Debug.WriteLine("This is text");
Example 2: c# printing to console
Console.WriteLine("Hello World");
Example 3: print to console c#
Console.WriteLine("Hello, world!"); // Prints: Hello, world!