Computer Science, asked by aadi9999, 8 months ago

Write the equivalent Java syntax for the given expressions: (1) a2+b2+c2+2(ab+bc+ca) (2) a=x3+y3+z3-3xy-3yz

Answers

Answered by khushiagarwal5869
1

(1) (Math.pow(a,2) + Math.pow(b,2) + Math.pow(c,2)) + 2(a*b + b*c + c*a)(2)

(2) a = (Math.pow(x,3) + Math.pow(y,3) + Math.pow(z,3)) - 3*x*y - 3*y*z

Similar questions