Computer Science, asked by rudrabaruwala, 4 months ago

Give outputs for r1 and r2
i. double r1=Math.pow(Math.max(3,7),2);
ii. double r2= Math.abs(Math.min(Math.sqrt(16),-4));​

Answers

Answered by himanshu2006vps
3

Answer:

1) double r1=Math.pow(Math.max(3,7),2);

double r1=Math.pow(7,2) ;// max between 3,7is 7

double r1= 49 // 7^2= 49;

2)double r2=Math.abs(Math.min(Math.sqrt(16),-4));

double r2=Math.abs(Math.min(4,-4);

double r2=Math.abs(-4);

double r2=4;

Similar questions