"c program sum of induvidual digits"?
Answers:
include<stdio.h>
void main()
{
int x,sum=0;
printf("enter the number");
scanf("%d",&x);
while(x>=1)
{
sum=sum+(x%10);
x=x/10;
}
}
you can solve ur problem by usng integer arrays.
More Related Questions & Answers...