Exercise 1.05

Exercise 1.05


// sicp 1.05
package main

import "fmt"

func p() int {
	return p()
}

func test(x, y int) int {
	if x == 0 {
		return 0
	} else {
		return y
	}
}

func main() {
	fmt.Println(test(0, p()))
}

Popular posts from this blog

Exercise 1.01

Exercise 1.03