how to output to console c# code example
Example 1: c# write to console
Console.Write("Hello");
Console.WriteLine("World");
Example 2: how to print statement in c#
Debug.Log("This is C# programming"); //for Unity
Console.Write("Hello");
Console.WriteLine("World");
Debug.Log("This is C# programming"); //for Unity