On 4/1/07, kanwarpreet singh <[EMAIL PROTECTED]> wrote:
>
>   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] <grollnar%40gmx.net>> wrote: --- In
> [email protected] <c-prog%40yahoogroups.com>, "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]
>
>  
>


What is preventing you from taking input from user?
-- 
Regards
Sumit Chawla ("eNetra : Hail the Invention")


"Computers are useless. They can only give you answers.":Pablo Picasso


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

Reply via email to