C Program – Sum of digits of given number till single digit

By | 2017-09-10T06:51:54+00:00 September 10th, 2017|c-program|0 Comments

C Program to print the sum of digits till single digit.

Sum of Digits Till Single Digit :

int main(void) 
    long num; 
    int dig,sum; 
    printf("Enter any number : "); 
    printf("%ld-> ",num); 
        sum = 0;  
        printf("%d-> ",sum); 
    return 0; 

[box type=”success” align=”alignleft” class=”” width=”100%”]

Enter any number : 586596
586596-> 39-> 12-> 3


Happy Learning 🙂

About the Author:

Hi Folks, you have reach this so far, that shows you like what you are learning. Then why don't you support us to improve for bettor tutorials by leaving your valuable comments and why not you keep in touch with us for latest updates on your favorite blog @ facebook , twitter , Or Google+ ,

Leave A Comment