public static void Main()
Console.WriteLine("---------------ASM 02----------------");
Console.Write("Nhap he so a: ");
a = Convert.ToInt32(Console.ReadLine());
Console.Write("Nhap he so b: ");
b = Convert.ToInt32(Console.ReadLine());
Console.Write("Nhap he so c: ");
c = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Phuong trinh co hai nghiem phan biet: ");
Console.WriteLine("X1 = " + (- b + Math.Sqrt(d)) / (2*a));
Console.WriteLine("X2 = " + (- b - Math.Sqrt(d)) / (2*a));
Console.WriteLine("Phuong trinh co nghiem kep: ");
Console.WriteLine("X1 = X2 = " + - b / (2.0 * a));
Console.WriteLine("Phuong trinh vo nghiem");
Console.WriteLine("-------------------------------------");