"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...
Financial Aid
Higher Education
Home Schooling
Homework Help
Preschool
Primary & Secondary Education
Quotations
Special Education
Standards & Testing
Studying Abroad
Teaching
Trivia
Words & Wordplay
General - Education


Financial Services:
24Biz - Lincoln NE USA Financial services