Go Language Programs
Go Programs
The following is the list of Go programming examples or Go programs that help you practice at your lab. We categorically divided this page into different sections, and each section has a different set of Go programs.
All the Go programs that we mentioned here have the program code along with the execution result. However, we haven’t explained the step-wise analysis because we already did in C programs and Python Programs. To make it simple, we have given the same names to these Go examples. I suggest you refer to C or Python programs to understand the analysis part (if needed).
Basic Go programs
The following are the basic and advanced Golang programs on Numbers and conditional statements.
- Golang Program to Print Hello World
- Go Program to add Two Numbers
- Go Program to Find the Compound Interest
- Go Program to Count Digits in a Number
- Go Program to Count Total Notes in an Amount
- Go Program to Find the Cube of a Number
- Go Program to Calculate the Employee Salary
- Go Program to calculate Electricity Bill
- Go Program to check Even or Odd
- Go Program to print Even Numbers from 1 to N
- Go Program to find Factors of a Number
- Go Program to find Factorial of a Number
- Go Program to find First Digit of a Number
- Go Program to find Generic Root of a Number
- Go Program to check Largest of Two Numbers
- Go Program to check Largest of Three Numbers
- Go Program to check Leap year
- Go Program to print Multiplication Table
- Go Program to print Natural Numbers from 1 to N
- Go Program to print Natural Numbers in Reverse Order
- Go Program to find NCR Factorial of a Number
- Go Program to find Number divisible by 5 and 11
- Go Program to print Odd Numbers 1 to N
- Go Program to check Palindrome Number
- Go Program to check Perfect Number
- Go Program to check Prime Number
- Go Program to find Product of Digits in a Number
- Go Program to check Positive or Negative
- Go Program to Calculate Power of a Number
- Go Program to Calculate Profit or Loss
- Go Program to Print 1 to 100
- Go Program to Print 1 to 100 without using loop
- Go Program to Reverse a Number
- Go Program to find Roots of a Quadratic Equation
- Go Program to Calculate Simple Interest
- Go Program to Calculate Square of a Number
- Go Program to find Square root of a Number
- Go Program to find Sum and Average of Natural Numbers
- Go Program to find Sum of Digits in a Number
- Go Program to find Sum of Even Numbers
- Go Program to find Sum of Even and Odd Numbers
- Go Program to find Sum of Odd Numbers
- Go Program to Swap Two Numbers
Go Array Program
The list of Golang programs on one dimensional Array.
- Go Program to Add Two Arrays
- Go Program to perform Arithmetic Operations on an Array
- Go Program to perform Array Multiplication
- Go Program to Calculate Array Average
- Go Program to Count Duplicates in an Array
- Go Program to Count Even and Odd Numbers in an Array
- Go Program to Count Positive and Negative Numbers in an Array
- Go Program to find Largest Array Item
- Go Program to find Largest and Smallest Number in an Array
- Go Program to Print Array Items
- Go Program to Print Array Items in Even Index Position
- Go Program to Print Array Items in Odd Index Position
- Go Program to Print Even Numbers in an Array
- Go Program to Print Negative Numbers in an Array
- Go Program to Print Odd Numbers in an Array
- Go Program to Print Positive Numbers in an Array
- Go Program to Put Positive and Negatives in a Separate Array
- Go Program to Reverse an Array
- Go Program to Search for Array Items
- Go Program to find Smallest Array Item
- Go Program to find Sum of Array Items
Go Program on Matrix
These are some of the Matrix programs in Golang.
- Go Program to Add Two Matrices
- Go Program to perform Arithmetic Operations on Matrix
- Go Program to find Determinant of a Matrix
- Go Program to check Identity Matrix
- Go Program to Interchange Matrix Diagonals
- Go Program to print Matrix Lower Triangle
- Go Program to perform Matrix Multiplication
- Go Program to print Matrix Upper Triangle
- Go Program to Print Matrix Items
- Go Program to Calculate Scalar Matrix Multiplication
- Go Program to check Sparse Matrix
- Go Program to find Sum of Each Matrix Column
- Go Program to find Sum of Each Matrix Row
- Go Program to find Sum of Each Row and Column of a Matrix
- Go Program to find Sum of Matrix Diagonal
- Go Program to find Sum of Matrix Lower Triangle
- Go Program to find Sum of Matrix Opposite Diagonal
- Go Program to find Sum of Matrix Upper Triangle
- Go Program to check Symmetric Matrix
- Go Program to Transpose a Matrix
- Go Program to check Two Matrixes are Equal
Go String Programs
The following are list of Golang programs to work with Strings.
- Go Program to find ASCII value of String Characters
- Go Program to Concat Two String
- Go Program to Convert Byte to String
- Go Program to Convert String to Byte Array
- Go Program to find First Character in a String
- Go Program to find Last Character in a String
- Go Program to Print String Characters
- Go Program to find String Length
Go Character Programs
In these Go example programs, we use both the Rune and the byte variables to represent the characters.
- Go Program to check Alphabet or Not
- Go Program to find ASCII Value of a Character
- Go Program to print ASCII Values of All Characters
- Go Program to Check Character is a Lowercase
- Go Program to Check Character is an Uppercase
- Go Program to Convert Lowercase Character to Uppercase
- Go Program to Convert Uppercase Character to Lowercase
- Go Program to check Digit or Not
- Go Program to Print Alphabets from a to z
- Golang Program to Print Alphabets from A to Z
- Golang Program to check Vowel or Consonant
Golang Volume and Surface Area Programs
The following Go examples will find and return the volume, surface area, and lateral surface area of different shapes.
- Golang Program to find Volume and Surface Area of a Cone
- Golang Program to find Volume and Surface Area of a Cube
- Golang Program to find Surface Area and Volume of a Cuboid
- Golang Program to find Volume and Surface Area of a Cylinder
- Golang Program to find Volume and Surface Area of a Sphere
Go Number Pattern Programs
- Go Program to print Box Number Pattern of 1 and 0
- Go Program to print Hollow Box Number Pattern
- Go Program to Print 1 and 0 in Alternative Columns
- Go Program to Print 1 and 0 in Alternative Rows
- Go Program to Print Diamond Number Pattern
- Go Program to print Floyd’s Triangle
- Go Program to Print K Shape Number Pattern
- Go Program to Print Left Pascals Number Triangle
- Go Program to print Rectangle Number Pattern
- Go Program to print Right Angled Triangle Number Pattern
- Go Program to Print Right Angled Triangle of 1 and 0
- Go Program to Print Right Angled Triangle of Consecutive Column Numbers
- Go Program to Print Right Angled Triangle of Consecutive Rows Numbers
- Go Program to Print Right Angled Triangle of Incremented Numbers
- Go Program to Print Right Angled Triangle of Numbers in Reverse
- Go Program to Print Right Angled Triangle of Same Column Numbers
- Go Program to print Inverted Right Triangle Number Pattern
- Go Program to Print Inverted Right Triangle of Column Numbers in Reverse
- Go Program to Print Inverted Right Triangle of Consecutive Column Numbers
- Go Program to Print Inverted Right Triangle of Descending Order Numbers
- Go Program to Print Inverted Right Triangle of Same Column Numbers
- Go Program to Print Pascal Triangle
- Go Program to Print Right Pascals Number Triangle
- Go Program to Print Right Arrow Number Pattern
- Go Program to print Square Number Pattern
- Go Program to Print Same Numbers on all Sides of a Square
- Go Program to Print Same Numbers in Square Rows and Columns
- Go Program to Print Simple Number Pattern
- Go program to Print Sandglass Number Pattern
Go Star and Alphabets Pattern Programs
- Go Program to Print Diamond Star Pattern
- Go Program to Print Hollow Diamond Star Pattern
- Go Program to Print Hollow Diamond inside a Square Star Pattern
- Go Program to Print Right Half Diamond Star Pattern
- Go Program to Print Mirrored Half Diamond Star Pattern
- Go Program to Print Downward Triangle Star Pattern
- Go Program to print Exponentially Increased Star Pattern
- Go Program to print Inverted Pyramid Star Pattern
- Go Program to print Inverted Right Triangle Star Pattern
- Go Program to Print Hollow Inverted Right Triangle Star Pattern
- Go Program to Print Reverse Mirrored Right Triangle Star Pattern
- Go Program to print Pyramid Star Pattern
- Go Program to Print Hollow Star Pyramid Pattern
- Go Program to Print Hollow Inverted Star Pyramid Pattern
- Go Program to Print Left Pascals Star Triangle
- Go Program to Print Hollow Left Pascals Star Triangle
- Go Program to Print Right Pascals Star Triangle
- Go Program to Print Hollow Right Pascals Star Triangle
- Go Program to print Rectangle Star Pattern
- Go Program to print Hollow Rectangle Star Pattern
- Go Program to Print Rhombus Star Pattern
- Go Program to Print Hollow Rhombus Star Pattern
- Go Program to Print Mirrored Rhombus Star Pattern
- Go Program to Print Hollow Mirrored Rhombus Star Pattern
- Go Program to Print Hollow Right Angled Triangle Star Pattern
- Go Program to print Mirrored Right Angled Triangle Pattern
- Go Program to Print Inverted Mirrored Right Angled Triangle Star Pattern
- Go Program to print Reversed Mirrored Right Angled Triangle Pattern
- Go Program to Print Left Arrow Star Pattern
- Go Program to Print Right Arrow Star Pattern
- Go Program to print Square Star Pattern
- Go Program to print Hollow Square Star Pattern
- Go Program to Print Hollow Square with Diagonals Star Pattern
- Go program to Print Sandglass Star Pattern
- Go Program to Print Plus Star Pattern
- Go Program to Print X Star Pattern
- Go Program to Print K Shape Alphabets Pattern
- Go Program to Print Repeated Characters Pattern
- Go Program to Print Right Triangle Alphabets Pattern
- Go Program to Print Triangle Alphabets Pattern
0 Response to "Go Language Programs"
Post a Comment