Use Console.Write() to display the values of the variables code example
Example 1: c# print
Console.Write("C# Programming");
Example 2: how to print statement in c#
Debug.Log("This is C# programming"); //for Unity
Console.Write("C# Programming");
Debug.Log("This is C# programming"); //for Unity