Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function depositCalculator(input) {
- let deposit = Number(input[0]);
- let months = Number(input[1]);
- let percent = Number(input[2]);
- let sum = deposit + months * ((deposit * percent / 100) / 12);
- console.log(sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement