Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function changeBureau(input) {
- let bitcoins = Number(input[0]);
- let chY = Number(input[1]);
- let commission = Number(input[2]);
- let bitcoinsInEuro = bitcoins * 1168 / 1.95;
- let chYInEuro = (chY * 0.15 ) * 1.76 / 1.95;
- let sum = bitcoinsInEuro + chYInEuro;
- let totalSum = sum - sum * commission / 100;
- console.log(`${totalSum.toFixed(2)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment