Advertisement
Spocoman

Excursion

Sep 18th, 2023
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     int people, nights, cards, tickets;
  8.     cin >> people >> nights >> cards >> tickets;
  9.  
  10.     double total = (20.00 * nights + 1.60 * cards + 6.00 * tickets) * people * 1.25;
  11.  
  12.     printf("%.2f\n", total);
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement