Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- double length, width, height;
- int percentage;
- cin >> length >> width >> height;
- double aquariumVolume = 105 * 77 * 89;
- double aquariumLitres = aquariumVolume * 0.001;
- double percentageCalculated = 18.5 * 0.01;
- double litresNeeded = aquariumLitres * (1 - percentageCalculated);
- cout.setf(ios::fixed);
- cout.precision(3);
- cout << litresNeeded << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment