Advertisement
Spocoman

05. Training Lab

Dec 8th, 2021 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function trainingLab(input) {
  2.     let w = parseFloat(input[0]);
  3.     let h = parseFloat(input[1]);
  4.  
  5.     let num = (h - 1) * 100 / 70;
  6.     let row = w * 100 / 120;
  7.     let sum = parseInt(num) * parseInt(row) - 3;
  8.  
  9.     console.log(sum);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement