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 function of this pointer?
What is %d called in c?
Does c have function or method?
What is the use of extern in c?
Write a code on reverse string and its complexity.
How to define structures? ·
Why c is a procedural language?
What is the -> in c?
What do you know about the use of bit field?
How can I remove the leading spaces from a string?
What is difference between array and structure in c?
What happens if a header file is included twice?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What is nested structure?
What tq means in chat?