C program to sum up all individual digits

Example C program to sum up all individual digits of a given number: