c# print console code example

Example 1: how to print in c#

Console.WriteLine("Hello World");

Example 2: c# print to console

Console.WriteLine("This is C#");

Example 3: c# write to console

Console.Write("Hello");
Console.WriteLine("World");

Example 4: c# print console

System.Diagnostics.Debug.WriteLine("This is text");

Example 5: c# how to print

Console.WriteLine(/*something like "hello"*/);
Console.Write(/*something like "hello"*/);

Example 6: how to print statement in c#

Debug.Log("This is C# programming"); //for Unity

Tags:

Misc Example