ICSE Class 10 Computer Applications Question 23 of 30

Solved Sample Paper 4 — Question 23

Back to all questions
23
Question

Question 2(iii)

Write the Java statement for the following mathematical expression :

x = (a+b)2a+b\dfrac{(a + b)^2}{\sqrt{a + b}}

Answer
x = Math.pow((a + b), 2) / Math.sqrt(a + b);