解一元多项式方程的算法用程序实现,怎么使用C语言的编程思想和代码的编写步骤具体怎么做呢?

Problem Description
Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;
Now please try your lucky.

Input
The first line of the input contains an integer T(1<=T<=100) which means the number of test cases. Then T lines follow, each line has a real number Y (fabs(Y) <= 1e10);

Output
For each test case, you should just output one real number(accurate up to 4 decimal places),which is the solution of the equation,or “No solution!”,if there is no solution for the equation between 0 and 100.

Sample Input
2
100
-4

Sample Output
1.6152
No solution!

#include
#include

void s(int a,int b,int c)
{
int delta=b*b-4*a*c;
if(delta<0) printf("此方程无解!\n");
else
{
printf("X1=%f\n",(-b+sqrt((double)delta))/(2*a));
printf("X2=%f\n",(-b-sqrt((double)delta))/(2*a));
}
}

int main()
{
int a,b,c;
printf("请输入a、b、c的值:");
scanf("%d%d%d",&a,&b,&c);
s(a,b,c);
return 0;
}