#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int x=0,y=0,z=0;
cin>>x;
cin>>y;
cout<<"1 x+y,2 x-y,3 x*y,4 x/y";
cin>>z;
switch (z)
{
case 1:
cout << "x+y=" << x+y << endl;
}
switch (z)
{
case 2:
cout << "x-y=" << x+y << endl;
}
switch (z)
{
case 3:
cout << "x*y=" << x+y << endl;
}
switch (z)
{
case 4:
cout << "x/y=" << x+y << endl;
}
system("pause");
return 0;
} |