using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
Console.WriteLine("Введите три числа a, b, c:");
double a = Convert.ToDouble(Console.ReadLine());
double b = Convert.ToDouble(Console.ReadLine());
double c = Convert.ToDouble(Console.ReadLine());
Console.WriteLine($"Введенные числа: a = {a}, b = {b}, c = {c}");
Console.WriteLine("Сумма a + b + c равна 0. Вычисление невозможно.");
double y = (a * a + b * b + c * c) / (a + b + c);
Console.WriteLine($"Значение функции y = {y}");
double distA = Math.Abs(a - y);
double distB = Math.Abs(b - y);
double distC = Math.Abs(c - y);
if (distA <= distB && distA <= distC)
Console.WriteLine($"Число {a} ближе всего к {y}");
else if (distB <= distA && distB <= distC)
Console.WriteLine($"Число {b} ближе всего к {y}");
Console.WriteLine($"Число {c} ближе всего к {y}");
double exponent = Math.Exp(closestNumber);
Console.WriteLine($"Экспонента числа {closestNumber} равна {exponent}");