You could convert them to a string and split out each character then convert each character to an int and sum them or you can do it mathmatically using the modulus operator '%'. The first way would probably be easier to do... lol. Also, if the sum is still greater than 9 then just do it again if that's the required result.