Simple C++ Code, beats 100% time
Intuition\n Describe your first thoughts on how to solve this problem. \nIf the number is even, return n.\nIf the number is odd, return n*2;\n\n Describe your a
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nIf the number is even, return n.\nIf the number is odd, return n*2;\n\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity: O(1)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int smallestEvenMultiple(int n) {\n        if(n%2==0)\n            return n;\n        else\n        {\n            return n*2;\n        }\n    }\n};\n```
['C++']