Write a C program to compute the roofs of a quadratic equation ax2 + 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: 4.(d) Marks: 6 Year: 2010
Login to post your comment.