ICSE Class 10 Computer Applications Question 28 of 30

Solved Sample Paper 2 — Question 28

Back to all questions
28
Question

Question 2(viii)

Write the Java statement for the following mathematical expression:

a=0.023y3x+ya = \dfrac{0.02 - 3y^3}{x + y}

Answer

a = (0.02 - 3 * Math.pow(y, 3)) / (x + y);