public static void Main(string[] args)
Console.WriteLine("Таблиця значень функції y = |x - 2| + |x + 1|");
Console.WriteLine("--------------------------------------------");
Console.WriteLine("| x | y |");
Console.WriteLine("|-------|-------|");
double y = Math.Abs(x - 2) + Math.Abs(x + 1);
Console.WriteLine("| {0,4:F1} | {1,4:F1} |", x, y);
Console.WriteLine("--------------------------------------------");