popovIliya

March-2022-FirstStepsInCoding-Exercise-Soft Uni - Deposit Calculator

Mar 4th, 2022
1,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function depositCalculator(input){
  2. let deposit = Number(input[0]);
  3. let term = parseInt(input[1]);
  4. let percentage = Number(input[2]);
  5. let sum = (deposit +  term * ((deposit * percentage / 100) / 12));
  6. console.log(sum);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment