Write the following mathematical expressions in Java.
i. 5x + y2
ii. (4c +d) 2
iii. d= b2 – 4ac
Answers
Answered by
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
Hindi,
12 hours ago
Social Sciences,
12 hours ago
Math,
12 hours ago
Math,
23 hours ago
Accountancy,
23 hours ago
Music,
8 months ago