
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

17K+ Views
Mathematically, a cube root of a certain number is defined as a value obtained when the number is divided by itself thrice in a row. It is the reverse of a cube value. For example, the cube root of 216 is 6, as 6 × 6 × 6 = 216. Our task in this article is to find the cube root of a given number using python. The cube root is represented using the symbol “$\mathrm{\sqrt[3]{a}}$”. The 3 in the symbol denotes that the value is divided thrice in order to achieve the cube root. There are various ways in ... Read More

2K+ Views
A rhombus is a four-sided polygon that has all equal edges and perpendicular diagonals. It is also called as a special type of parallelogram, since a parallelogram has equal opposite sides and is shaped similar. The area of a rhombus is calculated with its diagonals, as they form four triangles within the figure. The combination of the area of all those triangles will give us the area of a rhombus. The mathematical formula is − Area − $\mathrm{{\frac{p\:\times\:q}{2}}}$ Where, p and q are the lengths of diagonals. Input Output Scenarios Let us look at some input output scenarios to ... Read More

6K+ Views
A sphere (solid) is usually considered a two-dimensional figure even though the figure is seen in three planes from its center. The main reason for this is that, a sphere is only measured using its radius. However, a hollow sphere is considered a three-dimensional figure since it contains space within its spherical walls and has two different radii to measure its dimensions. The spherical figure only has total surface area since there is only one dimension to measure the entire object. The formula to calculate the surface area of a sphere is − Area of solid sphere − $\mathrm{{4\pi ... Read More

4K+ Views
A cone is a three-dimensional figure that is formed by connecting infinite line segments from a common point to all the points in a circular base. This common point is also known as an apex. The cone is measured using three dimensions: radius of its circular base, height and lateral height. The difference between a cone’s height and lateral height is such that− height is measured from the apex to the center of the circular base, while lateral height is a length of line segments connecting apex and any point on the circular base. The lateral surface area, also ... Read More

551 Views
In this article we will discuss about how to get total bits required for the given number using library function in Go language. To get the total number of bits of any number we need to represent that number in binary which is a combination of zeroes and ones and then count the number of zeroes and ones. For example: 16 can be converted in binary as 10000 and therefore number of bits in number 16 are 5. 65 can be converted in binary as 1000001 and therefore number of bits in number 65 are 7. Syntax Functions − func ... Read More

511 Views
In this article we will discuss about how to get the remainder of float numbers using library function in Go language. In programming, a float is a number that has a decimal point in it. For example: 0.2, 5.89, 20.79, etc. Remainder: Remainder in division is defined as the result left after the division process is over. For example, if 4 is the dividend and 2 is the divisor then after dividing 4 with 2 the remainder will be 0. Similarly on dividing 4 with 3 the remainder will be 1. To get the remainder of floating values we can ... Read More

673 Views
In this article we will discuss about how to get the quotient and remainder in GO language using library function. Syntax func Div(a, b, c uint) (q, r uint) func Remainder(q, r float64) float64 The div() function accepts three arguments as unsigned integers and returns the quotient and remainder respectively after computing the division process. The remainder() function accepts two arguments as 64-bit float values and returns the remainder after performing the division process in the same format. The source code to get the quotient and remainder of division using library functions is compiled and executed below. Finding The ... Read More

2K+ Views
In this tutorial, we are going to learn how to find the sum of N Numbers using Recursion in Golang programming language. A Recursion is where a function calls itself by direct or indirect means. Every recursive function has a base case or base condition which is the final executable statement in recursion and halts further calls. Below are two examples showing the two different type of recursion: direct and indirect. Find the Sum of N Numbers by Direct Recursion Method Syntax Syntax for direct recursion func recursion() { recursion() } func main() { ... Read More

378 Views
In this tutorial, we are going to learn how to find the sum of Natural Numbers using Recursion in Golang. A Recursion is where a function calls itself by direct or indirect means. Every recursive function has a base case or base condition which is the final executable statement in recursion and halts further calls. Below are two examples showing the two different type of recursion: direct and indirect. Find the Sum of Natural numbers by Direct Recursion Method Syntax func recursion() { recursion() } func main() { recursion(); } Algorithm Step ... Read More

692 Views
In this tutorial, we will learn how to reverse a sentence using recursion in Go Programming Language. A Recursion is where a function calls itself by direct or indirect means. Every recursive function has a base case or base condition which is the final executable statement in recursion and halts further calls. The recursion continues until some condition is met to prevent it. Below are two examples showing the two different type of recursion: direct and indirect. Reverse a Sentence using Recursion by using Direct Recursion Method Syntax Func recursion() { recursion(); /* function calls itself */ ... Read More