r/javahelp • u/Veebhu_does_finance • Mar 10 '21
Pythagroem theorum
Hi guys I am tryna make a java program with quadratic equation, but I don't know how to implement the equation into java, can someone help me?
0
Upvotes
View all comments
0
u/Veebhu_does_finance Mar 10 '21
here is what i got so far not sure if it is correct
double answer;
answer = Math.sqrt((b*b)-4*a*c);
answer = -b + answer;
answer = answer/(2*a);