#include <iostream>
using namespace std;
int main() {
    int x;
    char op;
    int y;
    cin>>x;
    cin>>op;
    cin>>y;
    if (op== '+') cout<<x+y<<" is ur answer"<<endl;
    if (op=='-') cout<<x-y<<" is ur answer"<<endl;
    if (op=='*') cout<<x*y<<" is ur answer"<<endl;
    if (op=='/') cout<<x/y<<" is ur answer";
    if (op=='%') cout<<x%y<<endl<<x<<" is divisible by "<<y;
}

Embed on website

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