Advertisement
Spocoman

Oscars ceremony

Sep 21st, 2023
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     int hallRent;
  8.     cin >> hallRent;
  9.  
  10.     double statues = hallRent * 0.7;
  11.     double catering = statues * 0.85;
  12.     double soundSystem = catering / 2;
  13.  
  14.     printf("%.2f\n", hallRent + statues + catering + soundSystem);
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement