Add, Subtract, Multiply or Divide given numbers

Q. Write a C++ program to perform addition, subtraction, multiplication and division of any two numbers.

Answer:

Below program shows that how to perform addition, subtraction, multiplication and division of any two numbers.

#include<iostream>
using namespace std;
int main()
{

        int num1, num2, num3;

        cout<<"\n Enter Two Numbers : \n";
        cin>>num1>>num2;

        num3=num1+num2;
        cout<<"\n Addition = "<<num3;

        num3=num1-num2;
        cout<<"\n Subtraction = "<<num3;

        num3=num1*num2;
        cout<<"\n Multiplication = "<<num3;

        num3=num1/num2;
        cout<<"\n Division = "<<num3;

        return 0;
}


Output:

arithmeric operations