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 get the sum of two integers?

Answer Posted / sandeep gupta

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,sum;
printf("enter two numbers");
scanf("%d%d",&i,&j);
sum=i+j;
printf("sum=%d",sum);
getch();
}
getch is missed which hold the output result on the screen.that's why i add the GETCH in this program.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stl stand for?

1283


What are the symptoms of stl?

1157


What is stl language?

1217


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

3090


What is stl stack?

1205


What are the components of stl?

1179


Who created stl?

1269


totoo po ba ang manga aliens!

2837


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

2403


What is a list in c++ stl?

1217


What is stl in c++ with example?

1218


write a program to convert a decimal number in to its equivalent binary number?

2770


What is a stl vector?

1375


Is stl open source?

1191


Why should a c++ programmer be interested in stl?

1154