Write the java expression for the following s
= x ^3 + y^3 + z^3
Answers
Answered by
1
Answer: The java expression is:
s=Math.pow(x,3)+Math.pow(y,3)+Math.pow(z,3);
OR the answer can be written as:
s=(x*x*x)+(y*y*y)+(z*z*z);
Hope it helps you:)
Similar questions