Created the 2023_10_26 unit

This commit is contained in:
2023-10-26 09:45:05 +02:00
parent 61b610de2f
commit ccb580b7b0
3 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#include <iostream>
using namespace std;
int main() {
// Variablendeklaration
double Umsatz, Provision;
// Eingaben abfragen
cout << "Geben Sie den Umsatz ein: ";
cin >> Umsatz;
// Berechnung
if (Umsatz < 100000) {
Provision = Umsatz * 0.05;
} else {
Provision = Umsatz * 0.75;
}
// Ausgabe
cout << "Die Provision beträgt: " << Provision << " Euro." << endl;
}