Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9. double lenght, width, aWardrobe;
  10. cin >> lenght >> width >> aWardrobe;
  11. double dancers;
  12.  
  13. double hallArea = (lenght*100) * (width*100);
  14. double wardrobeArea = aWardrobe*100 * aWardrobe*100;
  15. double benchArea = hallArea / 10;
  16. double dancerArea;
  17. dancerArea = 7040;
  18. double freeArea = hallArea - wardrobeArea - benchArea;
  19.  
  20. dancers = freeArea / dancerArea;
  21.  
  22. cout << floor(dancers);
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement