Find the output of Math.max(Math. ceil(2.9)),2.5);
Answers
Answered by
0
Answer:
3
Explanation:
Math.max( Math.ceil(2.9), 2.5);
Math.max(3, 2.5) [ 2.9 gets converted to 3 since ceil function converts the number to it's next integer]
3 [ 3 is the solution since between 3 and 2.5, 3 is the largest value ]
Hope it helps!
Similar questions