Advertisement
Spocoman

Gramophone

Oct 10th, 2024 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.32 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.   "fmt"
  5.   "math"
  6. )
  7.  
  8. func main() {
  9.     var  band, album, song string
  10.     fmt.Scanln(&band)
  11.     fmt.Scanln(&album)
  12.     fmt.Scanln(&song)
  13.    
  14.     rotation := float64(len(band) * len(album) * len(song)) / 2 / 2.5
  15.  
  16.     fmt.Printf("The plate was rotated %d times.", int(math.Ceil(rotation)))
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement