Hey, I've been trying to work out a function for this for a good while, I'm brand new to loops so I'm not sure which would be the best to use to separate the digits out to add. I do know from some searching around that I need to do:

number % 10 to get the digit alone

number / 10 to strip away the right-most number, I'm just having troubles with looping it.

Thanks in advance!