Advertisement
Spocoman

Basketball Equipment

Sep 15th, 2023
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int fee;
  7.     cin >> fee;
  8.  
  9.     double shues = fee * 0.6;
  10.     double dresses = shues * 0.8;
  11.     double balls = dresses / 4;
  12.     double accessories = balls / 5;
  13.  
  14.     printf("%.2f\n", fee + shues + dresses + balls + accessories);
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement