Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- double pagePrice, coverPrice, discountPercentage, designerPrice, teamPercentage;
- cin >> pagePrice >> coverPrice >> discountPercentage >> designerPrice >> teamPercentage;
- double bookPrice = ((pagePrice * 899 + coverPrice * 2) * (100.0 - discountPercentage)) / 100 * (100.0 - teamPercentage) / 100;
- cout << "Avtonom should pay " << bookPrice << " BGN." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement