Easy to understand C++ solution || faster than 100%
Explanation\nFirst of all we convert the number to a string for easy iteration through its digits. Then we store the values of multiplication and addition in va
**Explanation**\nFirst of all we convert the number to a string for easy iteration through its digits. Then we store the values of multiplication and addition in variables prod and add respectively and finally return the difference of the two.\n\nPlease upvote the answer if you find it helpful and comment down if you have any questions!\n\n```\nclass Solution {\npublic:\n    int subtractProductAndSum(int n) {\n       int prod=1,add=0; \n        string s=to_string(n);\n        for(auto c:s){\n            prod*=c-\'0\';\n            add+=c-\'0\';\n        }\n        return prod-add;\n    }\n};\n```
['C']