Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- int people, nights, cards, tickets;
- cin >> people >> nights >> cards >> tickets;
- double total = (20.00 * nights + 1.60 * cards + 6.00 * tickets) * people * 1.25;
- printf("%.2f\n", total);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement