Akhil Sharma has Published 634 Articles

Golang Program To Find The Transpose

Akhil Sharma

Akhil Sharma

Updated on 02-Jan-2023 15:05:28

600 Views

In this article, we will write a go language program to find the transpose of a matrix. A matrix is a collection of numbers that are arranged in rows and columns, which is a two-dimensional array. Find The Transpose Of A Matrix The following code illustrates an example to find ... Read More

Golang Program To Find The Trace And Normal Of A Matrix

Akhil Sharma

Akhil Sharma

Updated on 02-Jan-2023 15:04:02

199 Views

In this tutorial, we will write an article to find the normal and trace of a matrix. A matrix is considered normal if its square root equals the sum of the squares of each member and the trace is the total of a matrix's diagonal elements. Golang Program To Find ... Read More

Golang Program To Find Common Array Elements

Akhil Sharma

Akhil Sharma

Updated on 02-Jan-2023 14:58:02

981 Views

In this tutorial, we will see to write a go language program to find common elements in two arrays. Find Common Array Elements Using User-Defined Function The following code illustrates how we can find the common elements in two different arrays of strings. Algorithm Step 1 − import the fmt ... Read More

Golang Program To Copy All The Elements Of One Array To Another Array

Akhil Sharma

Akhil Sharma

Updated on 02-Jan-2023 14:55:40

1K+ Views

In this tutorial, we will see to write a go language program to copy all the elements of one array to another array. Copy All The Elements Of One Array To Another Array Using Equality Operator Let us now look at a go language code to copy all the elements ... Read More

Golang Program to Find the Product of Two Numbers Using Recursion

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:27:42

457 Views

The product of two numbers is the result you get when you multiply them together. So 15 is the product of 3 and 5 and 22 is the product of 2 and 11 and so on. A Recursion is where a function calls itself by direct or indirect means. ... Read More

Golang Program to Display Factors of a Number

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:25:10

1K+ Views

In this tutorial program, we will learn how to display the factors of a given number in the Go programming language. A factor of a number is defined as the algebraic expression that divides any given number evenly, with its remainder being zero. All composite numbers will have more than ... Read More

Golang Program to Convert Char Type Variables to Int Using Inbuilt Functions

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:18:04

5K+ Views

In this tutorial, we will learn how to convert character type to integer type variable using Golang programming language. In the Go programming language, there is no char data type. It uses bytes and rune and strings to represent character values. Example-1: Golang Program Code to Convert Char to Int ... Read More

Golang Program To Convert Array To Set

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:15:18

4K+ Views

In this tutorial, we will learn how to convert an array to a set using the Golang programming language. A Set is a collection of items. You can iterate on these items / add new / remove items and clear the set and get the size and check if the ... Read More

Golang Program to Show Encapsulation in Class

Akhil Sharma

Akhil Sharma

Updated on 29-Dec-2022 12:12:43

526 Views

In this article, we are going to learn about Encapsulation in class using Golang Program Encapsulation in go Language vs Other Object-Oriented Languages − The variables or data of a class in object-oriented languages are private to that class and can only be accessed through any member functions of the ... Read More

Golang Program To Convert Set Of String To Array Of String

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 17:03:22

3K+ Views

In this tutorial, we will write a golang program to convert a set of strings to array of strings. In go a set is an abstract data type that can store specific values without repeating any of them and without any particular sequence. Convert Set Of String To Array Of ... Read More

Advertisements