print string variable c# code example Example 1: c# print Console.Write("C# Programming"); Example 2: c# print to console Console.WriteLine("This is C#");