#include <iostream>
using namespace std;
int main() {
cout<<"enter number a"<<endl;
int a;
cin>>a;
cout<<"enter a character"<<endl;
char c;
cin>>c;
cout<<"enter number b"<<endl;
int b;
cin>>b;
if (c=='+'){
cout<<"a"<<'+'<<"b"<<'='<<a+b<< endl;
}
if (c=='-'){
cout<<"a"<<'-'<<"b"<<'='<<a-b<< endl;
}
if (c=='*'){
cout<<"a"<<'*'<<"b"<<'='<<a*b<< endl;
}
if (c=='%'){
cout<<"a"<<'%'<<"b"<<'='<<a%b<< endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: