#include<iostream>
using namespace std;
int main()
{
float x,y;
int a;
cout<<"What Arithmetic Operation do you want to perform:\n";
cout<<"Press 1 for Addition \n" ;
cout<<"Press 2 for Subtraction\n";
cout<<"Press 3 for Multiplication\n";
cout<<"Press 4 for Division\n";
cin>>a;
cout<<"\nEnter Two Numbers\n";
cin>>x>>y;

switch (a)

    {
    case 1:
    cout<<"The Addition result is: "<<x+y;
    break;

    case 2:
    cout<<"The Subtraction result is: "<<x-y;
    break;

    case 3:
    cout<<"The Multiplication result is: "<<x*y;
    break;

    case 4:
    cout<<"The Division result is: "<<x/y;
    break;
    }
   return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: