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