The conversation between human and AI assistant.
[|Human|] Rewrite the following code to use the ternary operator.
[|AI|] result = (a > b) ? a : b;
[|Human|] 
Rewrite the following code to use the ternary operator.