[Java] Short & Easy
```\nclass Solution {\n    public int subtractProductAndSum(int n) {\n        \n        int prod = 1;\n        int sum = 0;\n        while(n > 0){\n            
```\nclass Solution {\n    public int subtractProductAndSum(int n) {\n        \n        int prod = 1;\n        int sum = 0;\n        while(n > 0){\n            prod *= n %10;\n            sum += n % 10;\n            n /= 10;\n        }\n        \n        return prod - sum;\n        \n    }\n}
[]