Given the integer variables x and y, write a fragment of code that assigns the larger of x and y to another integer variable max.
LANGUAGE: Visual Basic
CHALLENGE:
Given the integer variables x and y, write a fragment of code that assigns the larger of x and y to another integer variable max.
SOLUTION:
If x > y Then max = x Else max = y End If