Go Program to check a number is Armstrong or not

In this program, You will learn how to check a number is Armstrong or not in Go. func main() { //statement } Example: How to check a number is Armstrong…

Go Program to check a number is palindrome or not

In this program, you will learn how to check a number is palindrome or not in Go. for <condition> { statement increment/decrement } Example: How to check a number is…

Go Program to reverse a number

In this program, you will learn how to reverse a number in Go. for <condition> { statement increment/decrement } Example: How to reverse a number in Go package main import…

Go Program to check a number is a strong number or not

In this program, You will learn how to check a number is a strong number or not in Go. for <condition>{ //statement } Example: How to check a number is…

Go Program to check a number is a perfect number or not

In this program, You will learn how to check a number is a perfect number or not in Go. if n%i == 0 { s = s + i }…

Go Program to find factorial of a number

In this program, You will learn how to find factorial of a number in Go. 3! = 1 * 2 * 3 => 6 4! = 1 * 2 *…

Go Program to print sum of first 10 natural numbers

In this program, You will learn how to print the sum of the first 10 natural numbers in Go. 55 = 1 + 2 + 3 + 4 + 5…

Go Program to swap two numbers without using third variable

In this program, you will learn how to swap two numbers without using third variable in Go. a = a + b b = a - b a = a…

Go Program to find remainder without using the modulus operator

In this program, you will learn how to find the remainder without using the modulus operator in Go. for <condition> { statement increment/decrement } Example: How to find the remainder…

Go Program to find quotient without using the division operator

In this program, you will learn how to find quotient without using the division operator in Go. for <condition> { statement increment/decrement } Example: How to find quotient without using…