write a program for input is 56 output will be 5+6=10?
Answer Posted / saranya
#include<stdio.h>
#include<conio.h>
main()
{
int n,a,b=0;
clrscr();
printf("Enter the n value");
scanf("%d",&n);
while(n!=0)
{
a=n%10;
b=b+a;
n=n/10;
}
printf("Result is %d",b);
getch();
}
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
SQL How can make delete and insert in one query
Friends i want to know about the civil service examination...when it wil be conducted this year?i want to become DSP...I just completed my engineering in the stream of computers....Is percentage required in engineering to Write Mains?please help me send answers to my mail arun.kanduri@gmail.com
give me some knowledge about automation on which asked on interview
What are annotations? What are assertions? why they are used why not if-else?? what is normalization? what is QuickSort? what are Avl trees?
what is difference between shell commands and shell scripting commands or both r same?
What type of questions are asked in interview?
plz snd me sbi probationofficers papers to my id archpa@gmail.com
Why do large ships like aircraft carriers not sink despite weighing several thousand tonnes?
What is histogram? why and how it is used?
what are the advantages as disadvantages of the V-model?
is built-in data-type are abstract data-types in java
I'm currently placed in Lahore Pakistan. where can i do Microsoft certification. let me know the best place to do.?
Why is it that a single, all – encompassing metric cannot be developed for programme complexity or programme quality?
Hi Friends, I am doing engg in comp sc in the final year from the evening college, I don't have experience in technical field. I am working in nontechnical field. I have big question that will IT companies considered me as fresher or they looks experience from me ? if you reply to my query, i am really grateful to you
hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.