Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function changeTiles(input) {
- let areaSide = Number(input[0]);
- let tileWidth = Number(input[1]);
- let tileLength = Number(input[2]);
- let benchWidth = Number(input[3]);
- let benchLength = Number(input[4]);
- let area = areaSide * areaSide - benchLength * benchWidth;
- let tileArea = tileWidth * tileLength;
- let tiles = area / tileArea;
- let time = tiles * 0.2;
- console.log(`${tiles}\n${time}`);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement