Answer Posted / gg
try this....
#include<stdio.h>
int main()
{
int n,m,sum=0;
scanf("%d",&n);
for(m=0;((m=n%10)!=0);n=(n/10))
sum+=m;
printf("count is %d\n",sum);
}
| Is This Answer Correct ? | 13 Yes | 16 No |
Post New Answer View All Answers
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What are bitwise shift operators in c programming?
What is the difference between typedef and #define?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Why c is called object oriented language?
By using C language input a date into it and if it is right?
Explain a pre-processor and its advantages.
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Why do we use header files in c?
C language questions for civil engineering
What does int main () mean?
how to construct a simulator keeping the logical boolean gates in c
What are the advantages of c preprocessor?
What is masking?
How can I get random integers in a certain range?