Sum of given digit

/* Write a function that returns the sum of given digit
Example :
1879 => 1+8+7+9 = 25
1050 => 6
*/

Comments (1)