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

please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html

1867


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

725


What are stl algorithms?

713


How is stl different from c++ standard library?

847


What is stl language?

752






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

2962


What are the various types of stl containers?

832


Explain stl.

984


When did c++ add stl?

836


what is template and type convertion

2094


Can we use stl in coding interviews?

1391


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

2002


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1949


What does stl mean in slang?

730


What is stl stand for?

815