Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function litersOfWater(input){
- let length = parseInt(input[0]);
- let width = parseInt(input[1]);
- let height = parseInt(input[2]);
- let percent = Number(input[3]);
- let volume = length * width * height;
- let liters = volume * 0.001;
- let sum = liters * (1 - (percent / 100));
- console.log(sum);
- }
Add Comment
Please, Sign In to add comment