Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int penCount, markerCount, detergentCount;
- cin >> penCount >> markerCount >> detergentCount;
- double discount;
- cin >> discount;
- double penPrice = penCount * 5.80;
- double markerPrice = markerCount * 7.20;
- double detergentPrice = detergentCount * 1.20;
- double totalPrice = (1 - discount / 100) * (penPrice + markerPrice + detergentPrice);
- cout << totalPrice << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement