求解一元二次方程ax
2+bx+c=0(a!=0) 的实根。
从键盘输入a,b,c的值,输出方程的实根
从键盘输入a,b,c的值,输出方程的实根
Description
Input
Output
|
1 2 1
2 5 6
1 8 2
0 0 5
|
Sample Input
|
x1=-1,x2=-1
no root
x1=-0.258343,x2= -7.74166
a=0,error
|