Write a Go program to print triangle alphabets pattern using for loop.
package main import "fmt" func main() { var i, j, k, row, alphabet int fmt.Print("Enter Triangle Alphabets Pattern Rows = ") fmt.Scanln(&row) fmt.Println("**** Triangle Alphabets Pattern ****") for i = 0; i < row; i++ { alphabet = 65 for j = row; j > i; j-- { fmt.Printf(" ") } for k = 0; k <= i; k++ { fmt.Printf("%c ", alphabet+k) } fmt.Println() } }