// Chapter 21 example: a simple function that gives back a value. // Run with: go run exercises/21/01-square.go package main import "fmt" func square(n int) int { return n * n } func main() { fmt.Println(square(5)) // 25 fmt.Println(square(7)) // 49 fmt.Println(square(3) + 1) // 10 // Try this: add a cube function that returns n * n * n, then print cube(3). }