c++ | easy | 100% fast
\n\n# Code\n\nclass Solution {\npublic:\n    int smallestEvenMultiple(int n) {\n        return n % 2 == 0 ? n : n * 2;\n    }\n};\n
\n\n# Code\n```\nclass Solution {\npublic:\n    int smallestEvenMultiple(int n) {\n        return n % 2 == 0 ? n : n * 2;\n    }\n};\n```
['C++']