c# how to log to console code example Example: c# write to console Console.Write("Hello"); Console.WriteLine("World");