//simulation d'une calculatrice #include using namespace std; int main() { int op1, op2; cout << "Entrer les deux operandes : " << endl; cin >> op1; cin >> op2; char opera; cout << "Chosir l'operation: +, - , *, /, ou %: "; cin >> opera; switch (opera) { case ('+'): cout << op1 << opera << op2 << " = " << op1 + op2 << endl; break; case ('-'): cout << op1 << opera << op2 << " = " << op1 - op2 << endl; break; //ajouter ici les autres operations default: cout << "l'operation " << opera << " n'est pas definie" << endl; break; } return 0; }