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

How does an stl file work?

1168


how to making game in c++ ?

2729


What is the stl, standard template library?

1094


What is stl stack?

1139


Name the different types of stl containers.

1173


What do stl stand for?

1149


totoo po ba ang manga aliens!

2787


In what scenario does the Logical file and Physical file being used?

2858


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3383


What is a list in c++ stl?

1166


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

2185


How stl is different from the c++ standard library?

1229


Is stl open source?

1145


How is stl different from c++ standard library?

1336


what is template and type convertion

2457