Welcome to my blog !

Golang Example to find quotient and remainder of a integers

April 2, 2022 ·  2 min read

In this example program, We will find quotient and remainder from the given numerator(dividend) and denominator (divisor) using modulus and division operators in Golang. Usually, The quotient is a result of the division operator in mathematics. In golang, division operator / is used and applied to integers. the remainder is a result of the modulus operator in mathematics. % symbol is defined in Golang. Find Quotient and Remainder for a given number in the golang program?...

Golang Example to find larger/Maximum number of array or slice

April 2, 2022 ·  2 min read

In this blog post, We are going to learn to Find larger/maximum number of arrays or slice, reading input from an user array or slice holds the collection of elements. The array is fixed in size, Slice is dynamic. Golang program is to find the maximum or largest element in an array or slice. The logic of the below program, Initially, Array first element will be assumed as the largest element, compared with other elements, if elements are larger than other elements, It becomes a new larger element, The process continues execution until all elements are finished...

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....

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