b. Write java equivalent expression for the following : [4] x=(-b+ (b^2-4ac))/2a
Answers
Answered by
0
Java expression for
There are two different ways:+
- x=(-b+(Math.pow(b,2)-(4*a*c)))/2*a
OR
- x=(-b+((b*b)-(4*a*c)))/2*a
Similar questions