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
What is the collection of communication lines and routers called?
Explain the difference between call by value and call by reference in c language?
Explain the use of keyword 'register' with respect to variables.
What are multibyte characters?
What happens if a header file is included twice?
Is there a way to switch on strings?
What are different types of pointers?
How do you define a function?
Stimulate calculator using Switch-case-default statement for two numbers
What is array within structure?
Why is c called a mid-level programming language?
What is ambagious result in C? explain with an example.
Explain what is meant by 'bit masking'?
What is the scope of static variable in c?
What are control structures? What are the different types?