RE: Squadratic formula in c++
I don't know why you are getting incorrect results. The reason I compiled your code was because I looked it over and couldn't find any problems -- and it works fine here, as expected.
I might download Dev-C++ and see if I can duplicate your problem later this evening.
As for your other question, try:
printf("ax\375+bx+c=0 \n");
375 is the octal value for the ² character in the PC OEM character set used by Windows console.
|