Computer Science, asked by jhansitalathoti9, 4 months ago

Question 5: What will be the following functions display(output):
[10
1) System.out.println(Math.ceil(10));
2) System.out.println(Math.min(Math.floor(x),y]); if x= 2.9 and y- 2.5
3) System.out.println(Math.rint (Math.abs(b)); if b=-15.6.
4) System.out.println(
Math.max(-17,-19));
5) System.out.println(Math.pow(4,3));​

Answers

Answered by Anonymous
8

Output:

 \:  \:  \:  1) \: 10 \\ 2) \: 2 \\ \:  \:  3) \: 16 \\ \:  \:  \:  \:  \:  \:  \:   4) \:  - 17 \\ \:   \:  5) \: 64

Similar questions