Computer Science, asked by AbbasMaths, 10 months ago

Hey , could anyone figure out any bug in this code. I was creating a C language code to create a quadratic equation roots solver.
Any professional answer me please :

#include <math.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
int a,b,c,d,e,f,g;
printf("enter a or coefficient of X raised to the power 2");
scanf("%d",&a);
printf("enter b or coefficient of X");
scanf("%d",&b);
printf("enter c or constant term");
scanf("%d",&c);

f = b*b - 4*a*c ;
g = sqrt(f);
d= (-b + g)/(2*a) ;
e = (-b - g )/ (2*a) ;

printf("%0.2f and %0.2f are the roots of this quadratic equation", d,e);

return 0 ;
}

Do not spam. Answer me if you find any irrevelant bug in code.​

Answers

Answered by princekumar1286
0

Answer:

shshdjdjdjdjxjxdhtcwyx the can inside is a process with w the can inside is due on the website and went forward with cold is more important things

Explanation:

zjsjsjskskssjsjdhehshsjsjdj धरहे is less that

Similar questions