Computer Science, asked by mansi9993, 1 year ago

What are the values stored in variables x
and y?
double a= -6.35;double b 14.74; double x
= Math.abs(Math.ceil(a));
double y = Math.rint(Math.max(a,b));​

Answers

Answered by ken7296
18

Answer:

X=7 , y=15

so in the first part,, math.ceil is there so it changes to -7 and abs means absolute soo it changes to 7.. in math.max maximum value is of b.. and math.rint mean to convert it into integer value.. so 14.74 becomes 15.. (◍•ᴗ•◍)

...................

Answered by Brainthinker
16

Answer:

x=6.0

y=15.0

these are the correct answers

Similar questions