除了在第 25 行解决 X 问题外,我几乎所有工作都在工作,我一直收到错误消息,说“术语不能评估为采用 1787 个参数的函数”我让它给了我一个 1 或一个 0,但因为我一直在弄乱它,所以我输了我在哪里并保存在副本上。如果很难阅读,仍然是新的发布抱歉
#include <stdio.h>
#include <math.h>
void quadratic_function()
{
    int         a,b,c;      // variables
    long int    result;     // my X in the quadractic function
    long int    y,x;            // the result
    long int    quadratic;
    printf("enter values for a,b,c\n");
    scanf("%i\n %i\n %i", &a,&b,&c);
    printf("A=%i  B=%i  C=%i\n", a,b,c); //Displays Variables
    y= pow(b, 2);
    result= (y)*-4*(a)*(c); // b^2-4ac
    printf("\n%li\n",result);
    if (result<0) 
        printf("Imaginary Number"); // if negative
    else (result>0);
        x=(-b/2*(a)) +- (sqrt(pow(b, 2)) (-4*(a)*(c))) / (2*(a)); 
        //solving for x
        printf("\n %li\n",x);
        a = a*x;
        b = b*x;
        quadratic=pow(a, 2)*(b)*(c);        // if positive
         //printf("Quadratic equation equal to %li",quadratic); // result
}
int main()
{
quadratic_function();
return 0;
}