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
Environmental Sciences,
15 hours ago
English,
15 hours ago
English,
15 hours ago
Math,
1 day ago
Music,
8 months ago