Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var firstTime, secondTime, thirdTime int
- fmt.Scanln(&firstTime)
- fmt.Scanln(&secondTime)
- fmt.Scanln(&thirdTime)
- var total = firstTime + secondTime + thirdTime
- var minutes = total / 60
- var seconds = total % 60
- fmt.Printf("%d:%02d\n", minutes, seconds)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement