Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var year string
- fmt.Scanln(&year)
- var p, h float64
- fmt.Scanln(&p)
- fmt.Scanln(&h)
- game := ((48 - h) * 3 / 4) + h + p * 2 / 3
- if year == "leap" {
- game *= 1.15
- }
- fmt.Println(int(game))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement