Question : How to print integers in C#

I just want to know how to represent integers in WriteLine("value of integer: \i", integer);

I know \i isn't right.  

Answer : How to print integers in C#

This only works with Console class:
Console.WriteLine("value of integer: {0}", integer);

For other WriteLine methods:
WriteLine(string.Format("value of integer: {0}", integer));
Random Solutions  
 
programming4us programming4us