Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function convert(arg1, arg2, arg3) {
- bit = Number(arg1);
- uan = Number(arg2);
- com = Number(arg3);
- let valueBit = (arg1 * 1168);
- let dollar = Number(1.76);
- let valueUan = (arg2 * (0.15 * dollar));
- let euro = Number(1.95);
- let valueCom = (arg3 / 100) * ((valueBit + valueUan) / euro);
- console.log(((valueBit + valueUan) / euro - (valueCom)).toFixed(2));
- }
- convert(1, 5, 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement