#include<iostream>
using namespace std;
int main()
{
int op,b,c;
cin>>op;
cin>>b>>c;
switch(op)
{
case 1:
cout<<b+c;
break;
case 2:
cout<<b-c;
break;
case 3:
cout<<b*c;
break;
case 4:
cout<<b/c;break;
break;
default:
cout<<"Invalid Input";
break;
}
return 0;
}
using namespace std;
int main()
{
int op,b,c;
cin>>op;
cin>>b>>c;
switch(op)
{
case 1:
cout<<b+c;
break;
case 2:
cout<<b-c;
break;
case 3:
cout<<b*c;
break;
case 4:
cout<<b/c;break;
break;
default:
cout<<"Invalid Input";
break;
}
return 0;
}
No comments:
Post a Comment