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