Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- double bedPrice, toiletPrice;
- cin >> bedPrice >> toiletPrice;
- double foodPrice = toiletPrice * 1.25;
- double toyPrice = foodPrice / 2;
- double vetPrice = toyPrice * 1.1;
- double sum = (toiletPrice + foodPrice + toyPrice + vetPrice) * 12 * 1.05 + bedPrice;
- printf("%.2f\n", sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement