Guest User

Untitled

a guest
Jan 16th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     double length, width, height;
  9.     int percentage;
  10.     cin >> length >> width >> height;
  11.  
  12.     double aquariumVolume = 105 * 77 * 89;
  13.     double aquariumLitres = aquariumVolume * 0.001;
  14.     double percentageCalculated = 18.5 * 0.01;
  15.     double litresNeeded = aquariumLitres * (1 - percentageCalculated);
  16.    
  17.     cout.setf(ios::fixed);
  18.     cout.precision(3);
  19.  
  20.     cout << litresNeeded << endl;
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment