Using your code, cut-n-pasted:
quote:
~ $ nano -w wf.c
~ $ gcc -o wf -lm wf.c
~ $ ./wf
ax˛+bx+c=0
The value of a is 5
The value of b is 10
The value of c is 5
The discriminant is 0
The first answer is -1
The second answer is -1
Looks good to me. Your code is fine. I doubt there could be a problem with your input, given that typing 5, 10, 5 is easy enough. That leaves a problem with your compiler.
So, what platform and compiler are you using?