Predict the output: - System.out.println (Math ceil(-2.68)....computer plz ..
Answers
Answered by
1
Answer:
Your answer is -2.
Explanation:
In JavaScript, ceil() is a function that is used to return the smallest integer value that is greater than or equal to a number.
For example:
console.log(Math.ceil(32.65));
console.log(Math.ceil(8.1));
console.log(Math.ceil(-4.2));
Output:
33
9
-4
Hope it helps!!
Answered by
2
Answer:
Math.ceil(-2.68) means it will come -2
and if Math.floor(-2.68) was there then it will come -3
System.out.println(Math.ceil(-2.68);
the output comes -2
hope it helps!
plz mark me as brainliest!
Explanation:
Similar questions