a program in C programming language find the roots of a quadratic equation using if-else commands.

Explanation
1. The program first asks the user to enter the coefficients of the quadratic equation a, b and c.
2. Calculates the discriminant using the formula b*b - 4*a*c.
3. then uses an if-else statement to determine the appearance of the root based on the offset value:
If the discriminant is greater than 0, the root is real and different.
If the difference is 0, the roots are real and equal.
If the discriminant is less than 0, the root is complex and different.
4. The program then calculates and prints the original roots accordingly.
5. Finally, the program returns 0 to specify successful execution of the program.


Previous :-->> 4. Using ternary operator ?: write a program in C to check whether a given year is a leap year?
 -->> NEXT: 6. Write a program in C to check whether a character is a vowel or a consonant using the Switch Case statement .
-->>ALL Conditionl statements Programs