In order to obtain the sum of the individual digits of a number theQuote:i have able to find total sum except individual

*integer division*and the relative

*reminder*are your friends.

For example, if you have

`n=35`

, then `3`

is the quotient of `n`

divided by `10`

(integer division), while `5`

is the reminder, and the sum of digits is `3+5=8`

(you may iterate the procedure for numbers having more digits).See, for instance: Integer Division in JavaScript | Delft Stack[^].