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.
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 Download SpellBox for macOS, Windows and VS Code today. Solve any programming or engineering problem with A.I.