Computer Science, asked by agentarnav14, 18 hours ago

Write the following mathematical expressions in Java.
i. 5x + y2
ii. (4c +d) 2
iii. d= b2 – 4ac​

Answers

Answered by simonsaikia9
0

Answer:

i) 5*x + Math.pow(y, 2);

Or

5*x + y*y;

ii) Math.pow((4*c +d), 2);

Or

(4*c +d)*(4*c +d);

iii) double d = Math.pow(b, 2)-4*a*c;

Or

double d = b*b -4*a*c;

Similar questions