From 3eb87850274ae3dc4f80194c460ae0125df0d39f Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 11 Apr 2025 11:01:50 +0200 Subject: [PATCH] Termin 3 Aufgabe --- v3.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v3.cpp b/v3.cpp index ffdc964..7bbc441 100644 --- a/v3.cpp +++ b/v3.cpp @@ -46,10 +46,10 @@ int main() { } else if (operation == '-') { pruef = true; } else { - cout << "Keine definierte Rechenoperation" << endl; + cout << "Keine definierte Rechenoperation!" << endl; while ((clear = getchar()) != '\n' && clear != EOF) { } } - } while (pruef == false); + } while (!pruef); cout << "Erste Zahl:"; cin >> ersteZahl; @@ -61,6 +61,7 @@ int main() { addition(ersteZahl, zweiteZahl); case '-': subtraktion(ersteZahl, zweiteZahl); + break; case '*': multiplikation(ersteZahl, zweiteZahl); case '/':