Quadratic Equation in java Source code

Quadratic Equation in java Source code

 

Problem Statement 

You need to Write a Quadratic Equation in java Source code program that prints all real solutions to the  ax2+bx+c = 0 quadratic equation. Program will Read values as  a, b, c and use the quadratic formula to find the solutions. If the discriminant  b2-4ac  is negative, display a message stating that there are no real solutions.

Else display the output to the screen will all values.

 

Program Code

 

Program Output 

 

Quadratic Equation in java Source code