Computer Science, asked by kumarsachin79, 5 months ago

a^3 + b^3

change to Java expression.​

Answers

Answered by BrainlyProgrammer
4

Answer:

Math.pow(a,3)+Math.pow(b,3)

Explanation:

Answered by anindyaadhikari13
22

Question:-

  • Write the Java expression for the following.

Java Expression:-

Given expression,

a³+b³

The Java expression will be

Math.pow(a, 3)+Math.pow(b,3);

Note:-

Math.pow(x, y) is used to return x raised to the power y. It always returns a value of double data type.

Similar questions