Easy Python Solution
class Solution:\n\n    def subtractProductAndSum(self, n: int) -> int:\n        product = 1\n        add = 0\n        while (n != 0):\n            product = pro
class Solution:\n\n    def subtractProductAndSum(self, n: int) -> int:\n        product = 1\n        add = 0\n        while (n != 0):\n            product = product * (n % 10)\n            add = add + (n % 10)\n            n = n // 10\n        return product - add
[]