Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java sum of number

Input: n = 234
Output: 15 
Explanation: 
Product of digits = 2 * 3 * 4 = 24 
Sum of digits = 2 + 3 + 4 = 9 
Result = 24 - 9 = 15
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged: #java #sum #number
ADD COMMENT
Topic
Name
8+9 =