Sunday, December 18, 2022

C Programming. Find the sum of all digits of a number.

 C Program to print sum of all digits of a number.




The output should be like this...

                Enter a number : 12345
                The sum of digits : 15

No comments:

Post a Comment

Selection Sort Using C programming.

Selection sort is a simple and efficient sorting algorithm that works by repeatedly selecting the smallest (or largest) element from the un...