how to get the sum of two integers?
Answers were Sorted based on User's Feedback
#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);
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What is a standard template library (stl)? What are the various types of stl containers?
In what scenario does the Logical file and Physical file being used?
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
Name the different types of stl containers.
what is strcture i++ i ++i answer to this i=5 what is the out put
What is stl stack?
how to swap two numbers in a linked list without exchanging the data but only the links?
Which data structure gives efficient search? A. B-tree B. binary tree C. array D. linked list
21 Answers ABC, Sun Microsystems,
What is stl stand for?
What is the Difference between CArray and CList?
1 Answers ProdEx Technologies, Siemens,
Difference between Structure and Class in C++?
What are the components of stl?