Which of the following formats 86 to display with two digits to the right of the decimal?
a. {0:C}
b. {0:c}
c. {0:f2}
d. all of the above
e. none of the above
Correct Option : c. {0:f2}
Solution :
using System;
namespace Exercise15
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("{0:f2}", 86);
}
}
}
Output : 86.00