VladimirGekov

Untitled

Nov 4th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function numberOfSeats([arg1, arg2]) {
  2. let lenght=parseFloat(arg1);
  3. let width=parseFloat(arg2);
  4. let colons=parseFloat(((width-1)/0,7));
  5. colons=Math.trunc();
  6. let rows=parseFloat((lenght/1,2));
  7. rows=Math.trunc();
  8. let seats=parseFloat((colons*rows)-3);
  9. console.log(seats);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment