Advertisement
Spocoman

Gramophone

Feb 24th, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function gramophone(input) {
  2.     let band = input[0];
  3.     let album = input[1];
  4.     let song = input[2];
  5.  
  6.     let rotation = band.length * album.length * song.length / 2 / 2.5;
  7.     console.log(`The plate was rotated ${Math.ceil(rotation)} times.`);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement