Write a Go program to print the consecutive column numbers in a right angled triangle pattern using for loop.
package main import "fmt" func main() { var i, j, k, row int fmt.Print("Enter Right Triangle of Consecutive Col Pattern Rows = ") fmt.Scanln(&row) fmt.Println("Right Triangle of Consecutive Column Numbers Pattern") k = 0 for i = 1; i <= row; i++ { for j = 1; j <= i; j++ { k = k + 1 fmt.Printf("%d ", k) } fmt.Println() } }