Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- double dayFoodPrice, daySouvenirPrice, dayHotelPrice;
- cin >> dayFoodPrice >> daySouvenirPrice >> dayHotelPrice;
- double foodPrice = dayFoodPrice * 3;
- double souvenirPrice = daySouvenirPrice * 3;
- double hotelPrice = dayHotelPrice * 0.90 + dayHotelPrice * 0.85 + dayHotelPrice * 0.80;
- double transportPrice = 210.0 * 2 / 100 * 7 * 1.85;
- printf("Money needed: %.2f\n", foodPrice + souvenirPrice + hotelPrice + transportPrice);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement