blob: f9f0a2109d47bdf0fba986651cd3a7ce85c26d47 [file] [log] [blame]
package main
import "fmt"
// div divides n by d and returns the quotient and remainder.
func div(n, d int) (q, r int) {
return n / d, n % d
}
func main() {
quot, rem := div(4, 0) // HL
fmt.Println(quot, rem)
}