Problem Statement
Calculate the positive root of a quadratic equation ax^2 + bx + c = 0.
Formula: (-b + sqrt(b^2 - 4ac)) / (2a).
DEMO-C-32 โข Programming in C
Calculate the positive root of a quadratic equation ax^2 + bx + c = 0.
Formula: (-b + sqrt(b^2 - 4ac)) / (2a).
a b c.The positive root formatted to 2 decimal places.
Submit runs every public testcase in this browser. Results and code never leave this device.
1 -3 2
2.00
1 2 1
-1.00
1 -7 12
4.00
1 0 -9
3.00
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question