Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int areaSide;
- cin >> areaSide;
- double tileWidth, tileLength;
- cin >> tileWidth >> tileLength;
- int benchWidth, benchLength;
- cin >> benchWidth >> benchLength;
- int area = areaSide * areaSide - benchLength * benchWidth;
- double tileArea = tileWidth * tileLength;
- double tiles = area / tileArea;
- double time = tiles * 0.2;
- cout << tiles << endl << time << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement