The program to find the sum of the digits of the given number is discussed here. This problem can be solved in two methods: The iterative approach and the Recursive approach
For example, let the input number be 719. The sum of digits of 719 = 7 + 1 + 9 = 17
@@coding::1@@
@@coding::2@@
Recommended Programs