Advertisement
Spocoman

09. Fish Tank

Nov 30th, 2021 (edited)
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function fishTank (input){
  2.     let length = Number(input[0]);
  3.     let width = Number(input[1]);
  4.     let height = Number(input[2]);
  5.     let percentage = Number(input[3]);
  6.  
  7.     let sum = length * width * height * (100 - percentage) / 100000;
  8.        
  9.     console.log(sum);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement