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

C and C++ Programs to Find Sum of Digits of a Given Number

The following are C and C++ programs to find sum of digits of any given integer.

C Program

#include<stdio.h>
#include<conio.h>
void main()
{