15.Write a program in c language to find the sum of all digits of a given number.
Sum of digits
Example 1
Given number = 123214 = 1+2+3+2+1+4 =13.
The sum of the digits of the given number "123214" is 13.
Example 2
Given number = 1273 = 1+2+7+3=13.
The sum of the digits of the given number "1273" is 13.
In this method we will divide the number by 10 and add the remainder to the sum.