Advertisement
Liliana797979

change bureau1

Jan 15th, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Change bureau
  2. function changeBureau(input) {
  3.     let bitcoinCount = Number(input[0]);
  4.     let yuanCount = Number(input[1]);
  5.     let commission = Number(input[2]);
  6.  
  7.     let result = (1168 + 1.32) / 1.95;
  8.     commission = result * 0.05;
  9.     let totalResult = (result - commission).toFixed(2);
  10.  
  11.     console.log(totalResult);
  12. }
  13.  
  14. changeBureau(["1", "5", "5"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement