#include using namespace std; int main () { double a, b; char r ; const unsigned char UE = static_cast(154); cout << "Bitte geben sie die Rechnung ein (nur +,-,*,/)" << endl; cout << "Beenden Sie, indem Sie an beide Zahlen 0 " << UE << "bergeben" << endl; while( a and b != '0') cin >> a >> r >> b ; cout << endl; if (a and b == '1' or '2' or '3' or '4' or '5' or '6' or '7' or '8' or '9' or '0'); else return 0; if('+'==r) { cout << a+b << endl; } else if('-'==r) { cout << a-b << endl; } else if('*'==r) { cout << a*b << endl; } else if('/'==r) { cout << a/b << endl; } else return 0; } return 0 ; }