Answer Posted / leninraj
main()
{
int n,i,sum=0,r;
printf("enter the value");
scanf("%d",&n);
for(i=0;i<=5;i++)
{
r=n%10;
n=n/10;
sum=sum+r;
}
| Is This Answer Correct ? | 57 Yes | 32 No |
Post New Answer View All Answers
Explain what is the benefit of using enum to declare a constant?
When should volatile modifier be used?
What are run-time errors?
Why C language is a procedural language?
pierrot's divisor program using c or c++ code
How can I find out if there are characters available for reading?
Write a program to implement queue.
What is the purpose of scanf() and printf() functions?
What is self-referential structure in c programming?
what do you mean by enumeration constant?
Write program to remove duplicate in an array?
Are negative numbers true in c?
What is calloc() function?
Explain what does a function declared as pascal do differently?
What are near, far and huge pointers?