Computer Science, asked by shagunverma170, 8 months ago

system.out.println(Math.ceil(8.5));​

Answers

Answered by itsmeaditi12345
1

Answer:

The Math.ceil() function always rounds a number up to the next largest integer.

Answered by EthicalElite
36

\tt{✧ \: Code:-}

system.out.println(Math.ceil(8.5));

_______________________________

\tt{✧ \: Output:-}

9.0

_______________________________

\tt{✧ \: Basic \: Information:-}

Math.ceil() is used to return the higher integer for the given argument.

_______________________________

Similar questions