C# how print a message once code example Example: c# printing to console Console.WriteLine("Hello World");