Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

SQL How can make delete and insert in one query

1800


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

1835


give me some knowledge about automation on which asked on interview

1823


What are annotations? What are assertions? why they are used why not if-else?? what is normalization? what is QuickSort? what are Avl trees?

2302


what is difference between shell commands and shell scripting commands or both r same?

2007


What type of questions are asked in interview?

1697


plz snd me sbi probationofficers papers to my id archpa@gmail.com

2148


Why do large ships like aircraft carriers not sink despite weighing several thousand tonnes?

983


What is histogram? why and how it is used?

1879


what are the advantages as disadvantages of the V-model?

1998


is built-in data-type are abstract data-types in java

1796


I'm currently placed in Lahore Pakistan. where can i do Microsoft certification. let me know the best place to do.?

1747


Why is it that a single, all – encompassing metric cannot be developed for programme complexity or programme quality?

1968


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

1845


hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.

1967