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