{

Welcome to my blog !


Golang Example to count the number of digits in an integer

April 2, 2022 ·  3 min read

This example covers two programs to count the number of digits in an integer. the first program uses the iterative function, The second program uses the Recursive function. Consequently, Both are uses to implement digit count for a given number. you should be familiar with the following Go language features for this program. Golang For Loop control structure Golang For Loop Range form Golang read input from user Golang Recursion Function Guide The below code write to read an integer value from a user keyboard and find the number of digits....

golang example to check number/integer even or odd

April 2, 2022 ·  2 min read

In this blog post, we will learn about two programs in golang. The first program is how to check input number is even or odd. the second program is how to check a given array or slice of numbers for even or odd numbers. The logic for any number is even or odd is as follows. Even number is a number divisible to 2 is zero. if operation modulus operator divisible by 2 with remainder=0....

Golang Example to check Character is alphabetic or not

April 2, 2022 ·  2 min read

Learn programs on how to check whether the character is alphabetic or not in the go language. These do use an if-else statement and a switch case statement. Alphabetic characters are characters English letters in lower and upper case. Special characters are not allowed. Characters in go language represent the rune data type that contains the ASCII code value from 0 to 127. Please have a look at the below golang features to have an understanding of this program better....

Golang Example programs with code

April 2, 2022 ·  2 min read

Go is a Static typed popular programming language. To learn a new programming language, We must write a practical example by making use of features. It is an index page for all golang features like control statements -loops, if-else, data types, data structures, classes, Conversions of one datatype to others, and objects. All the programs and examples are compiled and tested and given output. if you are new to go language, want to learn golang before working on this program, then have a look Golang Tutorials....

Golang Example - to check a number is a prime number or not

April 2, 2022 ·  3 min read

This post covers the three programs to check Prime numbers, One is prime number check for a fixed number, Second is to check prime number read input from user console, Third to check prime number check for bigint types. The prime number in mathematics is whole or positive greater than 1 which divides itself and one For example, the number can be divided with the remainder being zero. number 19 can be divided by 19 or 1 only....

Subscribe
You'll get a notification every time a post gets published here.