I am supposed to write a program in C using an algorithm. It is supposed to solve the quadratic equation when getting a,b,c. However, when I put in a =1, b=4, c=4, the program doesn't work. In other words, the last two else's of the program don't work.Code:#include <stdio.h> #include "genlib.h" #include "simpio.h" #include <math.h> main() { double a,b,c,d,x,x1,x2; printf("Enter the value for a: "); a=GetReal(); printf("Enter the value for b: "); b=GetReal(); printf("Enter the value for c: "); c=GetReal(); if (a==0) { if (b==0) { printf("No solution"); } else { x=(-c/b); printf("The equation is not quadratic and the solution is:%.2f",x); } } else { d=((b*b)-(4*a*c)); if (d<0) { printf("There is no real solution."); } else { if (d>0) { x1=(-b+(sqrt(d)))/(2*a); x2=(-b-(sqrt(d)))/(2*a); printf("There are 2 solutions. The first is %.2f and the second is %.2f",x1,x2); } else { if (d=0) { x1=(-b/(2*a)); printf("There is one solution which is %.2f"); } } } } getchar(); }