the code i have developed is for sum of digits is this
main()
{
 int b,c,d;
printf("the number is 12345\n");
b=12345%10;
c1234%10;
d=c+b;
printf("value is %d",d);
getch();
clrscr();
}
but its not a general code i want to make the user key in the number 

Nico Heinze <[EMAIL PROTECTED]> wrote:                                  --- In 
[email protected], "puupy_puc" <[EMAIL PROTECTED]> wrote:
 >
 > i have just started doing c prog from yashvant kanetkar's book
 > and i'm having problem with these progs 
 > 
 > "if a 5 digit no is i/p through the keyboard, write a program
 > to calculate the sum of its digits"
 >  also "..............,write a program to reverse the no."
 
 Show us the code or design you have done so far.
 
 Regards,
 Nico
 
 
     
                       

                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 

[Non-text portions of this message have been removed]

Reply via email to