Pages

Showing posts with label sum of digits. Show all posts
Showing posts with label sum of digits. Show all posts

Simple C Program to Calculate Sum of Digits of a Number

This is a very simple C Language program that calculates the sum of digits of a 5 digit number. The 5 digit number is entered by the user. Here's the code and output of the program. Enjoy!!!