Go Program to Print Right Triangle of Same Column Numbers

Write a Go program to print the right triangle of same column numbers in each row using for loop.

package main

import "fmt"

func main() {

	var i, j, row int

	fmt.Print("Enter Right Triangle of Same Col Num Rows = ")
	fmt.Scanln(&row)

	fmt.Println("Right Triangle of Same Column Numbers Pattern")

	for i = 1; i <= row; i++ {
		for j = 1; j <= i; j++ {
			fmt.Printf("%d ", i)
		}
		fmt.Println()
	}
}
Go Program to Print Right Triangle of Same Column Numbers