
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

256 Views
In this tutorial, we will be discussing the approach to calculate the volume and area of a cylinder in Golang programming using its height and radius. But before writing the code for this, let’s briefly discuss the cylinder and its volume and area. Cylinder A cylinder is a three-dimensional figure whose base has a circular shape. The distance between the two bases is known as the cylinder’s height ‘h’ and the radius of the base is denoted by ‘r’. A cold drink can is a good example of a cylinder. Volume of a cylinder The capacity ... Read More

302 Views
In this tutorial, we will be discussing the approach to calculate the volume and area of a sphere using its radius in Golang programming. But before writing the code for this, let’s briefly discuss the sphere and its volume and area. Sphere A sphere is a three-dimensional figure whose all points are equidistant from the center. It has no edges and no faces. The radius of the sphere is denoted by ‘r’. A ball is a good example of a sphere. Volume of a sphere The capacity or amount of space a sphere occupies is termed ... Read More

315 Views
In this tutorial, we will be discussing the approach to calculate the volume and area of a cone using its height and radius in Golang programming. But before writing the code for this, let’s briefly discuss the cone and its volume and area. Cone A cone is a three-dimensional figure that is pointed at the top and its base is flat and curved. The height of the cone is denoted by ‘h’ and the radius of the flat curved surface is denoted by ‘r’. An ice cream cone is a good example of a cone. $$\mathrm{where\: length \, ... Read More

571 Views
In this tutorial, we will be discussing the program to find the sum of all odd numbers up to ‘N’ in Golang programming. But before writing the code for this, let’s have a brief discussion on odd numbers. Odd Numbers An odd number is a number that is not completely divisible by 2 and its remainder is always 1 when the number is divided by 2. A simple way to check whether a number is an odd number or not is to check its last digit. If the last digit is 1, 3, 5, 7, or 9, then the number ... Read More

463 Views
In this tutorial, we will be discussing the program to find the sum of all even numbers in Golang programming. But before writing the code for this, let’s briefly discuss even numbers. Even Numbers An even number is a number that is completely divisible by 2 and its remainder is always 0. A simple way to check whether a number is an even number or not is to check its last digit. If the last digit is 0, 2, 4, 6, or 8, then the number is said to be an even number. Iterate through the first n even numbers ... Read More

316 Views
In this tutorial, we will be discussing the approach to finding the surface area of a cube in Golang programming using the sides of the cube. But before writing the code for this, let’s briefly discuss the cube and its area. Cube A cube is a three-dimensional figure that has six square faces. All six faces of the cube are in the shape of a square. Its length, breadth, and height are equal. Dice is a common example of a cube. Area of a cube The total area enclosed by all six faces of the cube is known as the ... Read More

541 Views
An arc of a circle is a segment or portion of the circumference of a circle. In other words, a curve between a pair of distinct points. The length of the arc refers to the length between two points along the arc (two points along a section of a circle or curve). It is a percentage of the circumference of the circle. When two lines intersect each other, the common meeting point is called a vertex and the geometrical figure between the two arms/lines is called an angle. Following diagram will help you to understand the arc and its length: ... Read More

639 Views
A Hemisphere refers to the exact half of a sphere, which means if we divide a sphere into two equal parts, then we will get two hemispheres. The hemisphere is a three-dimensional geometrical shape that has one flat face. Following is the diagram of the Hemisphere, which gives an idea about the space it occupies and its radius that helps you to calculate the volume: Volume of the Hemisphere The volume of the hemisphere is the amount of space occupied by the hemisphere. It is half of the volume of the sphere with the same radius (r). Here is ... Read More

2K+ Views
Hypotenuse refers to the longest side, which is opposite to the right angle of a right-angled triangle. Following is the diagram of the Hypotenuse: Length of the Hypotenuse The length of the hypotenuse can be calculated using the Pythagorean theorem. According to it, the sum of the squares of the lengths of two sides is equal to the square of the length of the third side as follows: a2 + b2 = c2 c = √(a2 + b2) Where a, b, and c refer to the three sides of the right-angled triangle. You can write the above formula ... Read More

339 Views
A hemisphere refers to the exact half of a sphere. Means if we divide a sphere in two equal parts then we will get two hemispheres. Hemisphere is a three-dimensional geometrical shape which has one flat face. There are many practical examples of hemispheres. The earth divided into 2 equal parts results 2 hemispheres i.e. Northern hemisphere and Southern hemisphere. The area occupied by the outer surface of a three-dimensional object is called the surface area. Formula to calculate surface area of hemisphere − Mathematically it can be represented as $$\mathrm{Surface \:Area \:= \:2\pi\:r^2}$$ Mathematically it can be represented as ... Read More