Go Program to Print Inverted Right Triangle of Consecutive Column Numbers

Write a Go program to print the inverted right angled triangle of consecutive numbers in each column using for loop.

package main

import "fmt"

func main() {

	var i, j, row int

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

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

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