The Math.Max(x,y) method can be used to find the highest value of x and y code example Example: The Math.Max(x,y) method can be used to find the highest value of x and y Math.Max(5, 10);