C Program to Compute the Sum of Digits in a given Integer
C Program to Compute the Sum of Digits in a given Integer
This C Program computes the sum of digits in a given integer. This program m accepts integer. Then adds all the digits of a given integer, that becomes the sum of digits of integer.
Here is source code of the C program to compute the sum of digits in a given integer. The C program is successfully compiled and run on a Linux system. The program output is also shown below.
No comments: