Given three numbers A,B and C. Find roots of quadratic equation Ax2 + Bx + C = 0. (A not equal to 0)
First line of the input contains an integer T which denotes the number of test cases. Then T test cases follow. Each test case contains a single line containing three space separated integers A,B and C.
For each test case, Print two roots of quadratic equation(space separated) in ascending order. For complex roots,print COMPLEX.
1 <= T< = 100
Note: A is not equal to 0.
2 3 4
3 5 1
1 -4 4
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.