[Solved] My program for div(4,2) should return (0, true) and div(4,3) should return (1, false) is giving error [closed]
For example, package main import “fmt” func div(a int, b int) (int, bool) { if a%b == 0 { c := a % b return c, true } else { c := a % b return c, false } } func main() { fmt.Println(div(4, 2)) // should return (0, true) fmt.Println(div(4, 3)) // should return … Read more