Go Program to Print Right Triangle Alphabets Pattern

Write a Go program to print the right angled triangle alphabets pattern using for loop.

package main

import "fmt"

func main() {

	var i, j, row, alphabet int

	fmt.Print("Enter Right Triangle Alphabets Pattern Rows = ")
	fmt.Scanln(&row)

	fmt.Println("**** Right Triangle Alphabets Pattern ****")

	alphabet = 65

	for i = 0; i < row; i++ {
		for j = 0; j <= i; j++ {
			fmt.Printf("%c ", alphabet+j)
		}
		fmt.Println()
	}
}
Go Program to Print Right Triangle Alphabets Pattern