1281 Product - sum of an int
\nclass Solution(object):\n    \n    def subtractProductAndSum(self, n):\n        sumOfInts = 0\n        productOfInts = 1\n        while(n>0):\n          remai
```\nclass Solution(object):\n    \n    def subtractProductAndSum(self, n):\n        sumOfInts = 0\n        productOfInts = 1\n        while(n>0):\n          remainder1 = n % 10\n          sumOfInts += remainder1\n          productOfInts *= remainder1\n          n -= remainder1 \n          n /= 10\n          \n        return productOfInts - sumOfInts\n        \n```
['Python', 'Python3']