Computer Science, asked by masternavya, 3 months ago

Give the output
Double d=81.00;
double a=Math.sqrt(Math.abs(d));
System.out.println("a=" +a) ;​

Answers

Answered by anindyaadhikari13
2

Question:-

Write the output of the following code.

Solution:-

Given,

double d=81.00;

double a=Math.sqrt(Math.abs(d));

System.out.println("a="+a);

a=Math.sqrt(81.00)

=9.0

Hence,

output is:-

a=9.0

Output:-

a=9.0

Similar questions