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

c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

1053


What are identifiers c?

1099


Write a program to swap two numbers without using the third variable?

1078


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1130


Why isn't it being handled properly?

1072


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1092


What are the application of void data type in c?

1192


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1111


How can you avoid including a header more than once?

988


How can I list all of the predefined identifiers?

986


What is meant by preprocessor in c?

1017


What is the difference between far and near ?

1199


What is variables in c?

1055


What do you mean by keywords in c?

1155


What are runtime error?

1140