I want to find the sum of the digits of the number entered in JAVA. I want to encode this algorithm.
Please enter a number= 4562
sum= 4+5+6+2
and I would like to divide the sum of the last number
sum=17/2
but I did not get to separate these numbers. If you know, could you please inform me?