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...

how to find sum of digits in C?

Answer Posted / neha khurana

#include<stdio.h>
#include<conio.h>

void main()
{
int x,y;
clrscr();

printf("\nEnter the value of any two numbers to be
added\n");
scanf("%d%d",&x,&y);

x=x+y;
printf("%d",x);
getch();
}

Is This Answer Correct ?    19 Yes 55 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

2117


What is time null in c?

1069


How do I get an accurate error status return from system on ms-dos?

1113


Why is c fast?

1053


Are the variables argc and argv are always local to main?

1018


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1898


What functions are used for dynamic memory allocation in c language?

1142


What is "Duff's Device"?

1163


Write a program to print fibonacci series without using recursion?

1128


What is the data segment that is followed by c?

1081


What does d mean?

1081


What is 2c dna?

1075


What are the types of data types and explain?

1088


Give me the code of in-order recursive and non-recursive.

1367


What is a protocol in c?

990