Home / Questions / Write an expression in Java for:z = (5x^3 + 2y)/(x + y)
Explanatory Question

Write an expression in Java for:
z = (5x^3 + 2y)/(x + y)

👁 84 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Java expression for:

z = (5x^3 + 2y) / (x + y)

In Java:


z = (5 * Math.pow(x, 3) + 2 * y) / (x + y);