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
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