Contact: aviboots(AT)netvision.net.il
32,304 questions
42,479 answers
573 users
package main import "fmt" func recursiveDivide(a int, b int) int { if a < b { return 0 } return recursiveDivide(a - b, b) + 1 } func main() { a := 28 b := 4 fmt.Print(recursiveDivide(a, b)) } /* run: 7 */