Newbie - cubic polynomial program - help!

Hi guys! :confused:

Ok first of all, I am completely new to c programming & need a bit of expert help with a program I am writing. I am required to write a c program to find the roots of a cubic polynomial. I just want to add at this point that I am NOT looking for someone to write the program for me, I'm just after a little assistance. In fact, I have written what I thought to be right, but it doesn't seem to work properly. The program compiles fine, but the problem is the way it works! There are supposed to be 3 different conditions, but when I execute the program (& input coefficients), I only get the condition where there is 'one real root & two imaginary roots'. The roots are not correct either, they have letters in the answer etc. Anyway, if anyone could have a look at my code & offer me any help as to where I am going wrong, I would be most grateful!

Thanks in advance!

Cherie