a=input("a=");
b=input("b=");
c=input("c=");
if(a==0 & b==0 & c==0)
exit();
endif
if(a==0&&b!=0&&c!=0)
x=-b/c;
disp('x='),disp(x);
endif
while(a!=0)
delta=b^2-4*a*c;
if(delta>=0)
x1=(-b-sqrt(b^2-4*a*c))/(2*a);
x2=(-b+sqrt(b^2-4*a*c))/(2*a);
else
delta=sqrt(-delta);
x1r=-b/(2*a);
x2r=-b/(2*a);
x1i=delta/(2*a);
x2i=-delta/(2*a);
x1=x1r+i*x1i;
x2=x2r+i*x2i;
endif
disp("x1="),disp(x1)
disp("x2="),disp(x2)
endwhile


