Go program to Print Sandglass Number Pattern

Write a Go program to print the sandglass number pattern using for loop. package main import “fmt” func main() { var i, j, k, row int fmt.Print(“Enter Sandglass Number Pattern Rows = “) fmt.Scanln(&row) fmt.Println(“**** Sandglass Number Pattern ****”) for i = 1; i <= row; i++ { for j = 1; j < i; … Read more

Go Program to Print Same Numbers in Square Rows and Columns

Write a Go program to print the same numbers in square number pattern rows and columns using for loop. package main import “fmt” func main() { var i, j, k, row int fmt.Print(“Enter Square Pattern Rows = “) fmt.Scanln(&row) fmt.Println(“Same Numbers in Sqaure Rows & Columns Pattern”) for i = 1; i <= row; i++ … Read more

Go Program to Print Same Numbers on all Sides of a Square

Write a Go program to print the same numbers on all sides of a square pattern using for loop. package main import “fmt” func main() { var i, j, k, row int fmt.Print(“Enter Sqaure With All Sides Same Number Rows = “) fmt.Scanln(&row) fmt.Println(“Same Number on All Sides of a Square Pattern”) for i = … Read more

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 <= … Read more

Go Program to Print Right Triangle of Numbers in Reverse

Write a Go program to print the right angled triangle of numbers in the reverse order using for loop. package main import “fmt” func main() { var i, j, row int fmt.Print(“Enter Right Triangle of Numbers in Reverse Rows = “) fmt.Scanln(&row) fmt.Println(“Right Triangle of Numbers in Reverse Order Pattern”) for i = row; i … Read more

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 … Read more

Go Program to Print Right Triangle of Consecutive Rows Numbers

Write a Go program to print the right triangle pattern of consecutive row numbers using for loop. package main import “fmt” func main() { var i, j, row, val int fmt.Print(“Enter Right Triangle of Consecutive Row Pattern Rows = “) fmt.Scanln(&row) fmt.Println(“Right Triangle of Consecutive Row Numbers Pattern”) for i = 1; i <= row; … Read more

Go Program to Print Right Triangle of Consecutive Column Numbers

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 … Read more

Go Program to Print Right Triangle of 1 and 0

Write a Go program to print the right angled triangle of 1 and 0’s using for loop. package main import “fmt” func main() { var i, j, row int fmt.Print(“Enter Right Triangle of 1 & 0 Rows = “) fmt.Scanln(&row) fmt.Println(“Right Triangle of 1 and 0 Pattern”) for i = 1; i <= row; i++ … Read more

Go Program to Print Right Pascals Number Triangle

Write a Go program to print the right pascals number triangle using for loop. package main import “fmt” func main() { var i, j, row int fmt.Print(“Enter Right Pascal Number Triangle Rows = “) fmt.Scanln(&row) fmt.Println(“Right Pascals Number Triangle Pattern”) for i = 1; i <= row; i++ { for j = 1; j <= … Read more