// Geoff Hagopian -- PPP3 Ex 6

#include <iostream>
#include <string>

using namespace std;

int main() {
	char action;
	double operand1, operand2;
	cout << "Enter an operation followed by two operands: ";
	while (cin >> action >> operand1 >> operand2) {
		switch (action) {
		case '+':
			cout << operand1 + operand2 << '\n';
			break;
		case '-':
			cout << operand1 - operand2 << '\n';
			break;
		case '*':
			cout << operand1 * operand2 << '\n';
			break;
		case '/':
			cout << operand1 / operand2 << '\n';
			break;
		default:
			cerr << "That's not a good operation!\n";
		}
	}
}