Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gramophone(band, album, song) {
- let sum = (band.length * album.length * song.length) / 2;
- let timesPlayed = 0;
- for (let i = 1; i <= sum; i += 2.5) {
- timesPlayed++;
- }
- console.log(`The plate was rotated ${timesPlayed} times.`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement