Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "math"
- )
- func main() {
- var band, album, song string
- fmt.Scanln(&band)
- fmt.Scanln(&album)
- fmt.Scanln(&song)
- rotation := float64(len(band) * len(album) * len(song)) / 2 / 2.5
- fmt.Printf("The plate was rotated %d times.", int(math.Ceil(rotation)))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement