-->
当前位置:首页 > 题库

PROGRAMMING:Solve equation 2

Luz5年前 (2021-05-10)题库426
Since the last time, Shao completed the PE teacher's homework with the help of the program of his friends, the teacher thought Shao had a solid learning in this section and decided to give him a little problem. This time, it was not only to find out whether there was a real root, but to find out the specific value of the real root. So and so Shao had to harden his head to ask for help.
###Input format:
The values of a, B and C are all in the range of int.
###Output format:
If there is a real root, if there is a single root, output a single root; if there are multiple roots, output from small to large, and reserve 2 decimal places.
If it does not exist, output "no".
###Input example:
```in
2 6 4
```
###Output example:
```out
-2.00 -1.00
```
###Tips
Tip: sqrt (x) can solve the root of X, but it must contain the header file # include < math. H >< br>





answer:If there is no answer, please comment