Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float x ;
- const float rabatt = 0.1;
- const int rabattgrenze = 100;
- cout<< " Geben Sie den Wert ein :"<< endl;
- cin >> x;
- if(x > 100) {
- cout << "Gesamtpreis: " << x - (x * rabatt) << endl;
- } else {
- if ((x >= 90) && (x < 100))
- {
- cout << "Gesamtpreis: 90€" << endl;
- } else {
- cout << "Gesamtpreis: " << x << endl;
- }
- }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement