Wednesday 18 December 2013

PROGRAM TO ADDITION TWO NUMBERS USING C++



#include<iostream.h>
#include<conio.h>
void main()
{
  clrscr();
  int a,b,sum;
  cout<<"enter  the value of number 1 and number 2";
  cin>>a>>b;
  sum=a+b;
  cout<<"\n"<<"sum of "<<" number 1 ="<<a<<" number  2="<<b<<”is”<<sum;
  getch();
}

No comments:

Post a Comment