Free C programs with output, C++ (C plus plus), programs c programming language, object oriented programming, c programs codes, c program shortcuts, history of c programming language, c programming compilers
void main ()
{
int no,r,res;
clrscr ();
printf ("Enter any value: ");
scanf ("%d",&no);
r=res=0;
while (no>0)
r=no%10;
no=no/10;
res=(res+r);
}
printf ("Sum is %d",res);
getch ();
No comments:
Post a Comment