How do you find the number with the highest value of x and y?

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: d
Explanation: 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.
 

Tìm kiếm

Back
Top