Addition operator
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int a,b;
int sum=0;
cout<<"Enter the value of a and b: ";
cin>>a>>b;
sum=a+b;
cout<<"Sum of the numbers is: "<<sum;
}
Multiplication operator
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int a,b;
int multiply=0;
cout<<"Enter the value of a and b: ";
cin>>a>>b;
multiply=a*b;
cout<<"Multiplication of the numbers is: "<<multiply;
}
Comments
Leave a comment