Answer Posted / anil kumar nahak
void main()
{
int n,i,sum=0,r;
printf("enter the value");
scanf("%d",&n);
while(n>0)
{
rem=num%10;
sum=sum+rem;
num=num/10;
}
printf("sum = %d",sum);
}
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the explanation for modular programming?
What is sizeof array?
How do I read the arrow keys? What about function keys?
What is difference between far and near pointers?
Is main an identifier in c?
Why do we use pointer to pointer in c?
Is void a keyword in c?
When should a type cast be used?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Explain can static variables be declared in a header file?
What are the differences between Structures and Arrays?
What is linear search?
What does c mean?
What is || operator and how does it function in a program?