Write a Go program to print the right pascals number triangle using for loop.
package main import "fmt" func main() { var i, j, row int fmt.Print("Enter Right Pascal Number Triangle Rows = ") fmt.Scanln(&row) fmt.Println("Right Pascals Number Triangle Pattern") for i = 1; i <= row; i++ { for j = 1; j <= i; j++ { fmt.Printf("%d ", j) } fmt.Println() } for i = row - 1; i >= 1; i-- { for j = 1; j <= i; j++ { fmt.Printf("%d ", j) } fmt.Println() } }