Start New Discussion within our Software Development Community

Console.WriteLine("Total Pay:{0:C}", pay)

Why {0:C} for?

Currency. {0:C} says that the first argument after the format string is to be formatted with the standard currency formatter.

This article has been dead for over six months. Start a new discussion instead.