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
How can I insert or delete a line (or record) in the middle of a file?
What is function prototype in c with example?
How can I use a preprocessorif expression to ?
Is a house a shell structure?
What are local variables c?
What is meant by recursion?
Are comments included during the compilation stage and placed in the EXE file as well?
What is a struct c#?
How many types of sorting are there in c?
Do you know the use of 'auto' keyword?
What are all different types of pointers in c?
ATM machine and railway reservation class/object diagram
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
In C language what is a 'dangling pointer'?
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