C code
It is very easy,just seperate the digits from orginal number and then add it with one another.. Code as follows..
#include
void main()
{
int n,digit,sum=0;
printf("enter the number");
scanf("%d",&n);
while(I
It is very easy,just seperate the digits from orginal number and then add it with one another.. Code as follows..
#include
void main()
{
int n,digit,sum=0;
printf("enter the number");
scanf("%d",&n);
while(I