public static void Main()
Console.WriteLine("nhap a: ");
a = double.Parse(Console.ReadLine());
Console.WriteLine(" nhap b: ");
b = double.Parse(Console.ReadLine());
Console.WriteLine("nhap c: ");
c = double.Parse(Console.ReadLine());
Console.WriteLine("phuong trinh vo nghiem");
else if (a == 0 && b == 0)
Console.WriteLine("Phuong trinh vo so nghiem");
Console.WriteLine($"phuong trinh {a}x^2 + {b}x + c = 0 co mot nghiem duy nhat {x}");
double d = Math.Pow(b, 2) - 4 * a * c;
Console.WriteLine("phuong trinh vo nghiem");
Console.WriteLine("Phuong trinh co nghiem kep x1 = x2 = {kep}");
double x1 = (-d - Math.Sqrt(d)) / (2 * a);
double x2 = (-d + Math.Sqrt(d)) / (2 * a);
Console.WriteLine($"phuong trinh {a}x^2 + {b}x + c = 0 co hai nghiem x1 = {x1} va x2 = {x2}");