Advertisement
Guest User

PB - Cange Bureau

a guest
Apr 20th, 2020
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function convert(arg1, arg2, arg3) {
  2.     bit = Number(arg1);
  3.     uan = Number(arg2);
  4.     com = Number(arg3);
  5.  
  6.     let valueBit = (arg1 * 1168);
  7.     let dollar = Number(1.76);
  8.     let valueUan = (arg2 * (0.15 * dollar));
  9.     let euro = Number(1.95);
  10.     let valueCom = (arg3 / 100) * ((valueBit + valueUan) / euro);
  11.     console.log(((valueBit + valueUan) / euro - (valueCom)).toFixed(2));
  12. }
  13.  
  14. convert(1, 5, 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement