I am very new to this and I'm really having a hard time trying to code and stuff. We have an exercise tomorrow about recursive function and I've been practicing with one of the questions that our teacher gave us a week ago. I've tried to make my own code but it seems that I can't understand why my program wont show the solution. This is what the program is supposed to do.
Write a function that computes for the sum of each of the digits of a given number. The function takes an integer argument and returns an integer sum. If a number is a negative number, get its absolute value.