output to console in public string c# code example
Example 1: c# print to console
Console.WriteLine("This is C#");
Example 2: c# print console
System.Diagnostics.Debug.WriteLine("This is text");
Console.WriteLine("This is C#");
System.Diagnostics.Debug.WriteLine("This is text");