#include <iostream>
int main()
{
int n1;
int n2;
std::cout << "please enter first number\n";
std::cin >> n1;
std::cout << "please enter second number\n";
std::cin >> n2;
std::cout << "what would you like to do. +, -, /, *,\n";
char ad = '+';
char sub = '-';
char mul = '*';
char div = '/';
std::cin >> ad;
std::cin >> sub;
std::cin >> mul;
std::cin >> div;
if ('+') {
std::cout << n1 << " + " << n2 << " is " << n1 + n2;
}
else if ('-') {
std::cout << n1 << " - " << n2 << " is " << n1 - n2;
}
else if ('*') {
std::cout << n1 << " * " << n2 << " is " << n1 * n2;
}
else if ('/') {
std::cout << n1 << " / " << n2 << " is " << n1 / n2;
}else {
std::cout << "does not compute\n";
}
}
int main();
I2luY2x1ZGUgPGlvc3RyZWFtPgoKCmludCBtYWluKCkKewoKCgogICAgaW50IG4xOwogICAgaW50IG4yOwoKICAgIHN0ZDo6Y291dCA8PCAicGxlYXNlIGVudGVyIGZpcnN0IG51bWJlclxuIjsKCiAgICBzdGQ6OmNpbiA+PiBuMTsKCiAgICBzdGQ6OmNvdXQgPDwgInBsZWFzZSBlbnRlciBzZWNvbmQgbnVtYmVyXG4iOwoKICAgIHN0ZDo6Y2luID4+IG4yOwoKICAgIHN0ZDo6Y291dCA8PCAid2hhdCB3b3VsZCB5b3UgbGlrZSB0byBkby4gKywgLSwgLywgKixcbiI7CiAKICAgIGNoYXIgYWQgPSAnKyc7CiAgICBjaGFyIHN1YiA9ICctJzsKICAgIGNoYXIgbXVsID0gJyonOwogICAgY2hhciBkaXYgPSAnLyc7CgogICAgc3RkOjpjaW4gPj4gYWQ7CiAgICBzdGQ6OmNpbiA+PiBzdWI7CiAgICBzdGQ6OmNpbiA+PiBtdWw7CiAgICBzdGQ6OmNpbiA+PiBkaXY7CgogICAgaWYgKCcrJykgewogICAgCiAgICAgICAgc3RkOjpjb3V0IDw8IG4xIDw8ICIgKyAiIDw8IG4yIDw8ICIgaXMgIiA8PCBuMSArIG4yOwogICAgfQogICAgZWxzZSBpZiAoJy0nKSB7CiAgICAgI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