C++
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        int even=0;\n        int odd=0;\n        int m=n;\n        while(m)\n        {\n            even+=m%2;\n            m=m/2;\n            odd+=m%2;\n            m=m/2;    \n\n        }\n        vector<int> ans;\n        ans.push_back(even);\n        ans.push_back(odd);\n        return ans;\n        \n    }\n};\n```
['C++']