Write a C Program to find the roots of quadratic equation. Here’s simple Program to find the roots of quadratic equation in C Programming Language.
Nature of roots of quadratic equation can be known from the quadrant = b2−4ac
- If b2−4ac >0 then roots are real and unequal
- If b2−4ac =0 then roots are real and equal
- If b2−4ac <0 then roots are imaginary
Below is the source code for C Program to find the roots of quadratic equation which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :
Above is the source code for C Program to find the roots of quadratic equation which is successfully compiled and run on Windows System.The Output of the program is shown above .
need an explanation for this answer? contact us directly to get an explanation for this answer