How to print Pascal’s triangle in Go

Go

🤖 Code Explanation

return pascal(i-1, j-1) + pascal(i-1, j)

}
}

This program prints out the first five rows of Pascal's triangle.

Download SpellBox today