This uses strings instead of numbers (join the result of 'ask' with a null string to force the result into a string rather than an integer) and adds the digits in the strings starting at the right hand side and working left. No checking is done for a valid input number so code carefully until you add that!
See discussion at https://scratch.mit.edu/discuss/topic/182842/