Mình chưa xét về thuật toán nhưng nhìn sơ thì bạn viết sai cú pháp if... else và thiếu dấu ; rất nhiều rồi.
code dưới mình fix theo thuật toán của bạn:
PHP:
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main ()
{
float a,b,c,d,e,delta;
printf("\n giai phuong trinh bac IV:");
printf("\n a*x^4+b*x^3+c*x^2+d*x+e=0");
printf("\n nhap gia tri 5 so a,b,c,d,e:");
scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
printf("\n dat t^2=x,(t>=0)");
printf("\n pt co dang bac 2:");
delta=b*b-4*a*c;
if (a==0)
if (b==0)
{
if (c==0)
printf("\npt co vo so nghiem");
else
printf("\npt vo nghiem");
}
else
printf("\npt co nghiem x=%f,-c/b");
else
{
if (delta<0)
printf("\npt vo nghiem");
if (delta==0)
{
printf("\npt co nghiem kep");
printf("\nx1= sqrt(t)");
printf("\nx2= -sqrt(t)");
}
else
if (delta>0)
{
printf("\npt co 2 nghiem phan biet:");
printf("\nx1=%0.2f",(-b+sqrt(delta))/(2*a));
printf("\nx2=%0.2f",(-b-sqrt(delta))/(2*a));
}
}
getch();
}