public static void Main() {
Console.WriteLine("Enter the values of a, b, c, and d");
a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
c = Convert.ToInt32(Console.ReadLine());
d = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The roots are cubic;");
} else if (a == 0 && b == 0) {
Console.WriteLine("The root is Linear;" + " " + x1);
Console.WriteLine("The roots are quadratic;");
disc = (c * c) - (4 * b * d);
Console.WriteLine("The roots are real and distinct;");
x1 = (-c / deno) + (Math.Sqrt(disc) / deno);
x2 = (-c / deno) - (Math.Sqrt(disc) / deno);
Console.WriteLine("The roots are... " + x1 + " " + " AND " + " " + x2);
Console.WriteLine("The roots are a repeated root");
Console.WriteLine("The root is...: " + " " + x1);
Console.WriteLine("The roots are imaginary roots\n");
x2 = ((Math.Sqrt((4 * b * d) - (c * c))) / deno);
Console.WriteLine("Root 1: " + " " + x1 + "+i" + x2);
Console.WriteLine("Root 2: " + " " + x1 + "-i" + x2);