console write variable c# code example Example: how to write a variable in console c# Console.WriteLine("{0}.{1}.{2}", mon, da, yer);