Computer Science, asked by hayatmurtaza09, 7 months ago

Write the equivalent Java expression for the following:

a. X + y + v(2XY)

b. Xy? + 2v(3(X+ Y))​

Attachments:

Answers

Answered by vyomamin631
2

Write the Java expressions for the following:

Question 1

p = a2 + bc

Answer

p = a * a + b * c

Question 2

m = a2 - b2 / (ab)

Answer

m = (a * a - b * b) / (a * b)

Question 3

s = ut + (1/2)at2

Answer

s = u * t + (1 / 2) * a * t * t

Question 4

f = uv / (u + v)

Answer

f = u * v / (u + v)

Question 5

(a + b)2 + b

Answer

(a + b) * (a + b) + b

Question 6

y = 2(lb + bh + lh)

Answer

y = 2 * (l * b + b * h + l * h)

Question 7

a2 + b2

Answer

a * a + b * b

Question 8

z = x3 + y3 - xy / 3

Answer

z = x * x * x + y * y * y - x * y / 3

please mark me as a brainlist

Similar questions