State the output of the following java expressions :
i. Math.max (-245, Math.max(-144,-133));
ii. Math.cbrt (27);
iii. Math.pow(3,3) ;
iv. Math.floor(15.9);
v. Math.ceil(101.1);
vi. Math.abs(-30.76);
vii. Math.sqrt(Math.pow(4,3));
Answers
Answered by
0
Answer:
i) -133
ii) 3.0
iii) 27.0
iv) 15.0
v) 102.0
vi) 30.76
vii) 8.0
Answered by
1
Output :
i) Math.max(-245, Math.max(-144,-133));
= Math.max(-245, -133)
= -133
ii) Math.cbrt (27);
= 3.0
iii) Math.pow(3,3);
= 27.0
iv) Math.floor(15.9);
= 15.0
v) Math.ceil(101.1);
= 102.0
vi) Math.abs(-30.76);
= 30.76
vii) Math.sqrt(Math.pow(4,3));
= Math.sqrt(64);
= 8.0
Answers :
i) -133
ii) 3.0
iii) 27.0
iv) 15.0
v) 102.0
vi) 30.76
vii) 8.0
Knowledge Bytes :
- What are library methods?
The library methods (functions) are the in built methods designed by the developers
Similar questions
Math,
12 days ago
Math,
12 days ago
Math,
25 days ago
English,
9 months ago
Computer Science,
9 months ago