Go Program to Print Right Triangle of Incremented Numbers

Write a Go program to print the right angled triangle of incremented numbers pattern using for loop.

package main

import "fmt"

func main() {

	var i, j, row int

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

	fmt.Println("Right Triangle of Incremented Numbers Pattern")

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