👤

write a method called digitsum that accepts an integer as a parameter and returns the sum of the digits of that number. for example, the call digitsum(29107) returns or 19 . for negative numbers, return the same value that would result if the number were positive. for example, digitsum(-456) returns or 15 . the call digitsum(0) returns 0 .