Computer Science, asked by subrao8888, 2 months ago

V. Give the output for the following program segment:
int a=5, b=9;
double x =
Math.sqrt(Math.max(a,b));
System.out.println("x =" +x);​

Answers

Answered by UniquePrincess1234
1

Program :-

int a=5, b=9;

int a=5, b=9;double x = Math.sqrt(Math.max(a,b));

Math.sqrt(Math.max(a,b));System.out.println("x =" +x);

Output :-

3

For explanation refer the attachment given...!!!!

Attachments:
Similar questions