Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function deposit(input) {
- let deposit = Number(input[0]);
- let months = Number(input[1]);
- let percentage = Number(input[2]);
- let total = deposit * months * percentage / 1200 + deposit;
- console.log(total);
- }
- РЕШЕНИЕ СЪС SHIFT():
- function deposit(input) {
- let deposit = Number(input.shift());
- let months = Number(input.shift());
- let percentage = Number(input.shift());
- let total = deposit * months * percentage / 1200 + deposit;
- console.log(total);
- }
Add Comment
Please, Sign In to add comment