Advertisement
Spocoman

Change Bureau

Jan 5th, 2022 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function changeBureau(input) {
  2.     let bitcoin = Number(input[0]);
  3.     let yuan = Number(input[1]);
  4.     let commission = Number(input[2]);
  5.  
  6.     let total = (bitcoin * 1168 + yuan * 0.15 * 1.76) / 1.95 * (100 - commission) / 100;
  7.  
  8.     console.log(`${total.toFixed(2)}`);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement