Computer Science, asked by Teri13thCrush, 23 days ago

please explain this... how did the answer came 15...?​

Attachments:

Answers

Answered by amansarrafas24payxgs
0

Answer:

Output:

a=15

Explanation:

int b = -15.6;

Math.rint(Math.abs(b));

Math.rint(15.6); // Math.abs gives absolute value.

15 // Math.rint gives closest value.

I hope you find it useful... If you have any query do comment, I will try to solve it...

Similar questions