小白求解。运行结果为unexpected end of file found
题目是求一元二次方程的解且保留四位小数大佬求解哪里错了!!!
运行结果是这样:unexpected end of file found
#include <stdio.h>
#include <math.h>
void main()
{
double a,b,c,x1,x2,delta;
scanf("%lf%lf%lf",&a,&b,&c);
/**********Program**********/
if(delta=b*b-4*a*c<0)
{
x1=-2018.2017;
x2=-2017.2018;
}
else if(delta=b*b-4*a*c>=0)
{
x1=(-b+sqrt(delta))/(2*a);
x2=(-b-sqrt(delta))/(2*a);}
/********** End **********/
printf("x1=%.4lf,x2=%.4lf\n", x1, x2);