Computer Science, asked by arshpreets517, 11 months ago

What will the final values be stored in variables when
executed ?
double a=-99.51;
double b =-56.25
double p=Math.abs (Math.floor(a));
double q = Math.Sqrt (Math.abs(b));

Answers

Answered by tanya2456
29

Answer:

p=100

q=7.5

Explanation:

p=math.abs(math.floor(a));

=math.abs(math.floor(-99.51));

=math.abs(-100);

=100

q=math.sqrt(math.abs(b));

=math.sqrt(math.abs(-56.25));

=math.sqrt(56.25);

=7.5

hope it helps you

if so then please mark as brainly ans ☺️☺️

Similar questions