The addition, subtraction, divided & multiply of two integer numbers via programming C++

Bismillahir Rahmanir Rahim
Hi, friends. How are you! now I'm writing   four C++ programs. thus are The addition, subtraction, division & multiply of two integer numbers.
The addition:
/*The addition of integer numbers*/
#include<iostream.h>
void main()
{
int a,b,c;
cout<<"Enter your 1st number: "; //cout=C output
cin>>a;//cin=C input
cout<<"Enter your 2nd number: ";
cin>>b;
c=a+b;
cout<<"The result: "<<c;
}
Subtraction:
/*The subtraction of integer numbers*/
#include<iostream.h>
void main()
{
int a,b,c;
cout<<"Enter your 1st number: ";
cin>>a;
cout<<"Enter your 2nd number: ";
cin>>b;
c=a-b;
cout<<"The result: "<<c;
}
Divide:
/*The divide of integer numbers*/
#include<iostream.h>
void main()
{
int a,b,c;
cout<<"Enter your 1st number: ";
cin>>a;
cout<<"Enter your 2nd number: ";
cin>>b;
c=a/b;
cout<<"The result: "<<c;
}
Multiply:
/*The multiply of integer numbers*/
#include<iostream.h>
void main()
{
int a,b,c;
cout<<"Enter your 1st number: ";
cin>>a;
cout<<"Enter your 2nd number: ";
cin>>b;
c=a*b;
cout<<"The result: "<<c;
}

Socializer Widget By Blogger Yard
SOCIALIZE IT →
FOLLOW US →
SHARE IT →