Write a C program to compute the roots of a quadratic equation: ax²+bx + c =0.

Use the following conditions:

(i)    There is only one root. if a = 0(x= -c/b);

(ii)   There are no real roots, if b²-4ac is negative.

(iii)  Otherwise, there are two real roots.

Subject Programming Language
NU Year Set: 3.(d) Marks: 8 Year: 2009
Login to post your comment.