,&a);
printf("\nnhap b : ");
scanf("%f",&b);
//buoc 2 xu ly
if(a == 0)
{
if(b == 0)
{
printf("\nvo so nghiem");
}
else
{
printf("\nvo nghiem");
}
}
else
{
float x = -b / a;
printf("\npt co nghiem x = %f",x);
}
getch();
return 0;
}Add a code snippet to your website: www.paste.org