ICSE Class 10 Computer Applications Question 23 of 30

Solved Sample Paper 3 — Question 23

Back to all questions
23
Question

Question 2(iii)

Write the Java statement for the following mathematical expression

p=ab2+ba2p = \dfrac{a}{b^2} + \dfrac{b}{a^2}

Answer

p = a / Math.pow(b,2) + b / Math.pow(a, 2);