Advertisement
Guest User

Untitled

a guest
Jun 10th, 2020
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function trainingLab(height, widht){
  2.  
  3.     height = Number(height) * 100;
  4.     widht = Number (widht) * 100;
  5.  
  6.     let freeWidht = widht -100;
  7.     let countDesksRow = Math.floor(freeWidht / 70);
  8.     let conutDesksColumn = Math.floor(height /120);
  9.     let totalSeets = (countDesksRow * conutDesksColumn) - 3;
  10.  
  11.     console.log(totalSeets);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement