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
static int SumOfDigits(int num) { string stringNum = num.ToString(); int sum = 0; for (int i = 0; i < stringNum.Length; i++) { sum+= int.Parse(Convert.ToString(stringNum[i])); } return sum; }