h4ex3: Use of the math library, conditional statements

h4ex3: Use of the math library, conditional statements

You cannot submit for this problem because the homework's deadline is due.

Description

Write a C function to find the roots of a quadratic equation whose coefficients are input by the user.

Format

Files

You should submit a tar file containing a c source file ex3.c

Input

a space separated triple \(a\) \(b\) \(c\), standing for \(ax^2 + bx + c\), on one line

Output

one root per line with a precision of five decimals

Sample 1

Input

1 2 1

Output

-1.00000

Sample 2

Input

1 3 2

Output

-2.00000
-1.00000

Sample 3

Input

1 -2 2

Output

1.00000-1.00000i
1.00000+1.00000i

Limitation

1s, 32MiB for each test case.

Assignment 4

Not Claimed
Status
Finished
Problems
3
Open Since
2018-06-14 14:00
DDL
2018-06-21 14:00
Extension
240.0 hour(s)