Akhil Sharma has Published 671 Articles

Golang Program To Create Pyramid And Pattern

Akhil Sharma

Akhil Sharma

Updated on 16-Nov-2022 05:29:58

1K+ Views

In this tutorial, we will learn how to create pyramids with different patterns in Go programming languageSyntax NESTED FOR LOOP for [condition | ( init; condition; increment ) | Range] { for [condition | ( init; condition; increment ) | Range] { ... Read More

Golang Program to Check Palimdrome

Akhil Sharma

Akhil Sharma

Updated on 16-Nov-2022 05:19:38

2K+ Views

In this tutorial, we will learn how to check for palindrome in Go programming language. We will check for palindrome for both numbers and strings in separate examples. A palindrome is a word, number, phrase, or other sequence of symbols that reads the same backwards as forwards, such as the ... Read More

Golang Program to Convert Numeric Data to Hexadecimal

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 13:21:16

2K+ Views

In the tutorial, we learn how to convert numeric data to hexadecimal number using Go programming language. The hexadecimal number system is described as a 16-digit number representation of numbers from 0 - 9 and digits from A - F. In other words, the first 9 numbers or digits are ... Read More

Golang Program to Check if two Strings are Anagram

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 13:04:29

1K+ Views

In this tutorial, we will learn how to check if given two strings are anagrams of each other or not using Go programming language. A word or phrase formed by rearranging the letters of a different word or phrase by using all the letters exactly once is known as an ... Read More

Golang Program to Check if a String is Numeric

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 13:00:36

7K+ Views

In this tutorial, we will learn how to check if a given string is numeric or not using Go programming language. We will be using the regexp package in Go to validate the numeric patterning of the string. Examples of numeric string − A string which has a numeric value ... Read More

Golang Program to Check For Armstrong Number

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 12:21:48

581 Views

In this tutorial, we will learn how to check for Armstrong number in Go programming language. An Armstrong number or the narcissist number is a number whose sum of digits raised to the power three equals the number itself. Example1: $\mathrm{(1^3) \:+ \:(5^3) \:+ \:(3^3)\:= \:153}$ Example2: $\mathrm{(3^3) \:+ ... Read More

Golang Program to Calculate The Power using Recursion

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 12:09:24

492 Views

In this tutorial, we will learn how to calculate the power using recursion technique in Go programming language. Power can be defined as a number being multiplied by itself a specific number of times. Exponent can be defined to the number of times a number is used in a multiplication. ... Read More

Golang Program to Print Right Triangle Star Pattern

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 12:05:22

623 Views

In this tutorial we will write a Go-lang code to print a right Triangle star pattern. We will depict how you can print the star pattern in go language. * * * * * * * * * * How to print a star pattern? A right triangle star ... Read More

Golang Program to Print Left Triangle Star Pattern

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 12:01:12

344 Views

In this tutorial we will write a Go-lang code to print a Left Triangle star pattern. We will depict how you can print the star pattern in go language. * * * * * * * * * * How to print a ... Read More

Golang Program to Print Half Diamond Star Pattern

Akhil Sharma

Akhil Sharma

Updated on 15-Nov-2022 11:32:13

260 Views

In this tutorial, we will learn how to print half diamond star pattern using Go programming language. Syntax for initialization; condition; update { statement(s) } To use a for loop in go lang we first need to initialize a variable then specify the condition of the ... Read More

Advertisements