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