Write a code that returns "Even" if the number is even and "Odd" if the number is odd, using the ternary operator.
String result = (num % 2 == 0) ? 'Even' : 'Odd';