double a, b, c;
Console.WriteLine(Math.Round(a, 2)+" "+ Math.Round(b, 2)+" "+Math.Round(c, 2));
double a = 10.123, b = 20.234, c = 30.345;
Console.WriteLine(Math.Round(a, 2) + "" + Math.Round(b, 2) + "" + Math.Round(c, 2));
Console.WriteLine(string.Join(" ", new []{a, b, c}.Select(x => x.ToString("F2"))));
Find more questions by tags C#