ludsumei

ProgramingBasicSoftUni

May 13th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function danceHall(input) {
  2.     let hallLenght = Number(input.shift());
  3.     let hallWidht = Number(input.shift());
  4.     let wardrobeSide = Number(input.shift());}
  5.     let hallArea = (hallLenght*100) * (hallWidht*100);
  6.     let wardrobeArea = (wardrobeSide*100) * (wardrobeSide*100);
  7.     let benchArea = hallArea / 10;
  8.     let freeSpace = hallArea - wardrobeArea - benchArea;
  9.     let danceCount = Math.floor(freeSpace/(40+7000));
  10. }
Advertisement
Add Comment
Please, Sign In to add comment