Standard form of quadratic equation is ax 2 bx c where a b and c are coefficient and real numbers and also a 0. If the condition is satisfied a is equal to 0 our equation is a linear equation. If d0 go to Step 6 else go to Step 8.
You can select the whole java code by clicking the select option and can use it.
Ax2 bx c 0. If a is equal to 0 that equation is not valid quadratic equation. If the condition is satisfied a is equal to 0 our equation is a linear equation. If you want input of type double make sure you declare the method appropriatelyAlso be careful of declaring things as int when they could be doubles for example root1 and root2.