Advertisement
Spocoman

09. Fish Tank

Aug 31st, 2023 (edited)
773
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.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int length, width, height;
  7.     cin >> length >> width >> height;
  8.  
  9.     double percentage;
  10.     cin >> percentage;
  11.  
  12.     double liters = length * width * height * (100 - percentage) / 100000;
  13.  
  14.     cout << liters << endl;
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement