HW4
You cannot submit for this problem because the homework's deadline is due.
Submission
Submit your code in a .zip
, .rar
, or .tar
file.
Please compress source code directlt rather than compress the folder containing the code.
Output Rule for HW4:
1. When output a number, use "%g" to output.
2. Note that, the general solution of a quadratic equation \(ax^2 + bx + c = 0\) is \(x_1 = \frac{-b+\sqrt{b^2-4ac}}{2a}\) and \(x_2 = \frac{-b-\sqrt{b^2-4ac}}{2a}\). In the cases that you need to output two solutions, output \(x_1\) first and then \(x_2\).
3. Pay attention to the spaces (" ") and new line ("\n"). They do matter in OJ.
Please name your source file as "hw4.c" and compress it as a .zip/.rar/.tar file to upload