Write a console program that calculates the sum of the digits of a number. For example, the sum of the digits of 123 is:
1 + 2 + 3 = 6
Enter a number: 5024 The digit sum of 5024 is 11