Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tailoringWorkshop(input) {
- let tables = Number(input.shift());
- let length = Number(input.shift());
- let width = Number(input.shift());
- let tableCloth = tables * (length + 2 * 0.30) * (width + 2 * 0.30);
- let quads = tables * (length/2) * (length/2);
- let usd = tableCloth * 7 + quads * 9;
- let bgn = usd * 1.85;
- console.log(`${usd.toFixed(2)} USD`);
- console.log(`${bgn.toFixed(2)} BGN`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement