+ 1
How to write quadratic equation...by c++
2 Respostas
+ 1
That's easy. Just include the cmath header, get a, b, and c from the user and get two results, like so:
result1 = (-b + sqrt(pow(b, 2) - 4 * a * c)) / (2 * a)
Do the same for result2, except with a minus.
0
Thanks a lot