Home About Me C Programs C++ Programs Make A Blog Popular

C++ program to add, subtract, multiply and divide two given numbers

Monday, March 19, 2007

#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int a,b;
cout <<"enter any number";
cin >> a;
cout <<"enter any number";
cin >> b;
int c=a+b;
cout << c <<endl;
int d=a-b;
cout << d <<endl;
int e=a*b;
cout <<e <<endl;
int f=a/b;
cout << f <<endl;
getch();
}

0 comments: