Tuesday, June 17, 2014

c++ program to add two integers

#include<iostream.h>

#include<conio.h>

using namespace std;

int main( )

{

int a;

int b;

cout<<"please enter first integer for sum";

cin>>a;

cout<<"please enter second integer for sum";

cin>>b;

cout<<"your sum is "<<a+b<<endl;

return 0;

getch();

}

No comments :

Post a Comment