Page 11
1. / Solve quadratic equations: ax2 + bx + c = 0 */
2. static void solveQuadraticEquations (float a, float b, float c) {
3.if (a== 0) {
4.if (b=0) {
5.
Console.WriteLine("The equation has no solution!");
6.}
7.else {
8.Console.WriteLine("The equation has one solution: x (0)", (-c/b));
9.}
10.}
11.
12.float deltabb4ac;
13.float x1;
14.float x2;
15.
Zoom
+ 107%
Close