Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. double lenght, width, height, procent, litres;
  8. cin >> lenght >> width >> height >> procent;
  9.  
  10. litres = (lenght * width * height)* 0.001 * ((100 - procent)/100);
  11.  
  12. cout.setf(ios::fixed);
  13. cout.precision(3);
  14.  
  15. cout << litres;
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement