// Chapter 21 example: more than one return value. // Run with: go run exercises/21/02-divmod.go package main import "fmt" func divide(a int, b int) (int, int) { return a / b, a % b } func main() { quotient, remainder := divide(17, 5) fmt.Println(quotient, remainder) // 3 2 _, remainder = divide(20, 6) fmt.Println(remainder) // 2 }