//simple calculator #include using namespace std; int main() { // instructions cout << "INSTRUCTIONS: put your 2 numbers, and either type multiplication, addition, division, or subtraction for the results." << std::endl; // variables int s; int z; string e; // input cin >> s; cin >> z; cin >> e; // answer if (e == "multiplication") { cout << s * z << std::endl; } else if (e == "addition") { cout << s + +z << std::endl; } else if (e == "division") { cout << s / z << std::endl; } else if (e == "subtraction") { cout << s - z << std::endl; } system("pause"); return 0; }