public static void Main()
double a, b, c, x1, x2, delta;
Console.WriteLine("Podaj współczynniki funkcji kwadratowej");
Console.WriteLine("Współczynnik a: ");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Współczynnik b: ");
b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Współczynnik c: ");
c = Convert.ToInt32(Console.ReadLine());
delta = b * b - 4 * a * c;
Console.WriteLine("Brak miejsc zerowych");
x1 = (-b + Math.Sqrt(delta)) / 2;
Console.WriteLine("Miejsce zerowe to: {0}",x1);
x1 = (-b - Math.Sqrt(delta)) / 2;
x2 = (-b + Math.Sqrt(delta)) / 2;
Console.WriteLine("Miejsce zerowe to: {0}, oraz: {1}",x1,x2);