Uploaded July 2022 | Updated November 2026, 3 hours ago
Java If Else statement is used to run a block of code under a certain conditions and another block of code under another condition.
#ifelse
#Icseifelse
#incometaxprogram
Java If Else statement is used to run a block of code under a certain conditions and another block of code under another condition.
#ifelse
#Icseifelse
#incometaxprogram







![#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)


