Computer Science, asked by nesarhussain5183, 9 months ago

Write the java expression for the following s
= x ^3 + y^3 + z^3

Answers

Answered by lalitha14rlsv
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