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