C program to add the digits of a number

C program to add the digits of a number

Output:

Enter the number to get its digit sum:
123
The digit sum of 123 is 6

Implementation: