Skip to content

Instantly share code, notes, and snippets.

@NicolaM94
Created July 30, 2023 10:38
Show Gist options
  • Save NicolaM94/a5497f2215d02a91d8fbe222844409b9 to your computer and use it in GitHub Desktop.
Save NicolaM94/a5497f2215d02a91d8fbe222844409b9 to your computer and use it in GitHub Desktop.
Call of pascalTriangle to obtain the result
func main() {
array := []int{1}
for n := 1; n <= 10; n++ {
array = pascalTriangle(array)
fmt.Println(array)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment