Svani91ვაფშე არ მიმიქცევია ყურადღება მაგისთვის

((
მარა მაინც არ უშვებს
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
double x1, x2;
Console.Write("enter a:");
double a = Convert.ToDouble(Console.ReadLine());
Console.Write("enter b:");
double b = Convert.ToDouble(Console.ReadLine());
Console.Write("enter c:");
double c = Convert.ToDouble(Console.ReadLine());
Double D=Dis( a, b, c);
if (D>0) {
x1 = (-b - Math.Sqrt(D)) / (2 * a);
x2 = (-b + Math.Sqrt(D)) / (2 * a);
Console.WriteLine("X1=" + x1 + "\nX2=" + x2);
}
else if (D==0){
x1=x2=-b/2*a;
Console.WriteLine("X="+x1);
}
else if (D<0) {
Console.WriteLine("amonaxsni ar aqvs");
}
}
static Double Dis( double xa, double yb, double zc ) {
Double d=xa*xa-4*xa*zc;
return d;
}
}
}
}