Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function repainting(input){
- let nylon = Number(input[0]);
- let paint = Number(input[1]);
- let thinner = Number(input[2]);
- let hours = Number(input[3]);
- let materialsPrice = (nylon + 2) * 1.50 + paint * 14.50 * 1.1 + thinner * 5 + 0.40;
- let workersPrice = materialsPrice * 0.30 * hours;
- console.log(materialsPrice + workersPrice);
- }
- Тарикатско решение :)
- function repainting(input){
- let materialsPrice = (Number(input[0]) + 2) * 1.50 + Number(input[1]) * 14.50 * 1.1 + Number(input[2]) * 5 + 0.40;
- let workersPrice = materialsPrice * 0.30 * Number(input[3]);
- console.log(materialsPrice + workersPrice);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement