Didart

Vacation Books List

Mar 4th, 2022
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function vacationBooksList(input) {
  2.     let pagesCount = Number(input[0]);
  3.     let pagesPerHour = Number(input[1]);
  4.     let days = Number(input[2]);
  5.  
  6.     let timeForReading = pagesCount / pagesPerHour;
  7.     let finalResult = timeForReading / days;
  8.  
  9.     console.log(finalResult);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment