Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function housePainting(input) {
- let x = parseFloat(input[0]);
- let y = parseFloat(input[1]);
- let h = parseFloat(input[2]);
- let green = 2 * x * y - 1.5 * 1.5 * 2 + x * x * 2 - 1.2 * 2;
- let red = 2 * x * y + 2 * x * h / 2;
- console.log(`${(green / 3.4).toFixed(2)}\n${(red / 4.3).toFixed(2)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement