Uploaded April 2020 | Updated November 2026, 4 days ago
An if statement is a programming conditional statement that, if proved true, performs a function or displays information. Below is a general example of an if statement, not specific to any particular programming language.
Thanks for Watching My Video and Please Do Subscribe My Channel for Getting More Videos
An if statement is a programming conditional statement that, if proved true, performs a function or displays information. Below is a general example of an if statement, not specific to any particular programming language.
Thanks for Watching My Video and Please Do Subscribe My Channel for Getting More Videos


![#10 Java Program to Find Roots of Quadratic Equation | Quadratic Equations using if-else in Java
Java Program to Find Roots of Quadratic Equation | Solve Quadratic Equations using if-else in Java
The standard form of a quadratic equation is:
ax2 + bx + c = 0, where
a, b and c are real numbers and
a ≠ 0
Roots of a quadratic equation are determined by the following formula:
To calculate the roots −
• Calculate the determinant value (b*b)-(4*a*c).
• If determinant is greater than 0 roots are real and unequal
[-b +squareroot(determinant)]/2*a and
[-b -squareroot(determinant)]/2*a.
• If determinant is equal to 0 root are real and equal is
-b/(2*a)
. If determinant is less than 0 roots are imaginary
Source Code:
https://myblog433g.blogspot.com/2020/05/java-program-to-find-roots-of-quadratic.html
Thanks for Watching and Please Do Subscribe My Channel
# RootsofQuadraticEquation #JavaQuadraticEquation #10 Java Program to Find Roots of Quadratic Equation | Quadratic Equations using if-else in Java](https://i.ytimg.com/vi/IctkbuPrJ6Y/mqdefault.jpg)







