program to add the digits of a number