1.

How do you find the number with the highest value of x and y?(a) ceil(x,y)(b) top(x,y)(c) Math.ceil(x,y)(d) Math.max(x,y)

Answer» Right option is (d) Math.max(x,y)

To elaborate: max function is used for comapring and finding maximum values. It is found in the math library. Math.max(x,y) is used to find the highest value of x and y.


Discussion

No Comment Found

Related InterviewSolutions