Termin 3 Aufgabe
This commit is contained in:
parent
fc9f52f533
commit
3eb8785027
5
v3.cpp
5
v3.cpp
@ -46,10 +46,10 @@ int main() {
|
|||||||
} else if (operation == '-') {
|
} else if (operation == '-') {
|
||||||
pruef = true;
|
pruef = true;
|
||||||
} else {
|
} else {
|
||||||
cout << "Keine definierte Rechenoperation" << endl;
|
cout << "Keine definierte Rechenoperation!" << endl;
|
||||||
while ((clear = getchar()) != '\n' && clear != EOF) { }
|
while ((clear = getchar()) != '\n' && clear != EOF) { }
|
||||||
}
|
}
|
||||||
} while (pruef == false);
|
} while (!pruef);
|
||||||
|
|
||||||
cout << "Erste Zahl:";
|
cout << "Erste Zahl:";
|
||||||
cin >> ersteZahl;
|
cin >> ersteZahl;
|
||||||
@ -61,6 +61,7 @@ int main() {
|
|||||||
addition(ersteZahl, zweiteZahl);
|
addition(ersteZahl, zweiteZahl);
|
||||||
case '-':
|
case '-':
|
||||||
subtraktion(ersteZahl, zweiteZahl);
|
subtraktion(ersteZahl, zweiteZahl);
|
||||||
|
break;
|
||||||
case '*':
|
case '*':
|
||||||
multiplikation(ersteZahl, zweiteZahl);
|
multiplikation(ersteZahl, zweiteZahl);
|
||||||
case '/':
|
case '/':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user