3
How to separate the digits of a number and add them up, for example: 123 -> 1 + 2 + 3 = 6
How to do this, however, do this using arithmetic operators. I saw a case where it was separated using operations with "/" and "%", but I didn’t understand very well how it is done.
Thank you, that’s exactly what I was looking for. Unfortunately I can’t vote, I don’t have 15 reputation yet.
– Rafael Lima