#include <iostream>
#include <string>
usingnamespace std;
int subtraction (int a, int b)
{
return a-b;
}
int addition (int c, int d)
{
return c+d;
}
int multiplication (int e, int f)
{
return e*f;
}
int devision (int g, int h)
{
return g/h;
}
int main ()
{
string choice;
int x,y;
int result;
cout<<"Would You Like To Add, Subtract, Multiply or Divide?"<< '\n';
cout<<"\n";
cout<<"Please Enter Add/Subtract/Multiply/Divide"<< '\n';
cout<<": ";
cin>>choice;
if (choice == "Add")
{
cout<<"Number 1: ";
cin>>x;
cout<<"\nNumber 2: ";
cin>>y;
result = addition (x,y);
cout<<"The Result Is: "<<result<<'\n';
}
elseif (choice == "Subtract")
{
cout<<"Number 1: ";
cin>>x;
cout<<"\nNumber 2: ";
cin>>y;
result = subtraction (x,y);
cout<<"The Result Is: "<<result<<'\n';
}
elseif (choice == "Multiply")
{
cout<<"Number 1: ";
cin>>x;
cout<<"\nNumber 2: ";
cin>>y;
result = multiplication (x,y);
cout<<"The Result Is: "<<result<<'\n';
}
elseif (choice == "Divide")
{
cout<<"Number 1: ";
cin>>x;
cout<<"\nNumber 2: ";
cin>>y;
result = devision (x,y);
cout<<"The Result Is: "<<result<<'\n';
}
return 0;
}