sum of digits in java ... int sum = 0; while (number > 10){ sum += number % 10; number /= 10; } return sum + number; } public static void main(String[] ...
確定! 回上一頁