Golang Program to Triangle of Alphabets
Example
package main
import "fmt"
func main() {
for i := 'A'; i <= 'G'; i++ {
for j := 'A'; j <= i; j++ {
fmt.Printf("%c ", j)
}
fmt.Println()
}
}
Output
A
A B
A B C
A B C D
A B C D E
A B C D E F
A B C D E F G