What\'s the fastest and easiest to read implementation of calculating the sum of digits?
I.e. Given the number: 17463 = 1 + 7 + 4 + 6 + 3 = 21
int n = 17463; int sum = 0; for (int i = n; i > 0; i = i / 10) { sum = sum + i % 10; } Console.WriteLine(sum); Console.ReadLine();