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 list in c++ stl?
what's the difference between function overloading and function overiding?
What is a standard template library (stl)? What are the various types of stl containers?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
write a c++ to define a class box with length,breadth and height as data member and input value(),printvalue() and volume() as member functions.
What does stl stand for in basketball?
totoo po ba ang manga aliens!
Give the output of the following program main() {int ret; ret=fork();ret=fork();ret=fork();ret=fork(); if(!ret) printf("sun"); else printf("solaris");
what is use of for loop?
how to use C++?
What Is Operator Overloading in C++?
give me the defination of inheritance?