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
Server Side Programming Articles - Page 492 of 2650
529 Views
This tutorial will discuss how to write a Swift program to find the sum of first N odd numbers.A number that is not divisible by 2 or we can say that when an odd number is divided by 2 then it leaves some remainder such type of number is known as an odd number. For example, when 2 divides by 2 leave remainder 0 whereas 3 divides by 2 leaves remainder 1. So it means 2 is even number and 3 is an odd number. List of odd numbers is: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, ... Read More
725 Views
This tutorial will discuss how to write a Swift program to find the sum of all odd numbers upto N. A number that is not divisible by 2 or we can say that when an odd number is divided by 2 then it leaves some remainder such type of number is known as an odd number. For example, when 2 divides by 2 leave remainder 0 whereas 3 divides by 2 leaves remainder 1. So it means 2 is an even number and 3 is an odd number. List of odd numbers is − 1, 3, 5, 7, 9, 11, ... Read More
359 Views
This tutorial will discuss how to write a Swift program to calculate the sum of first N even numbers. A number that is multiple of 2 or we can say that a number that is completely divisible by 2(that means leaves no remainder) is known as even number. For example, 2, 4, 6, 8, 10, …etc. are even numbers. We can calculate the sum of the first N even number using the following formula. Formula Following is the formula for the sum of first N even numbers − Sum = N(N + 1) Below is a demonstration of the ... Read More
1K+ Views
This tutorial will discuss how to write a Swift program to calculate the sum of all even numbers upto N. A number that is a multiple of 2 or we can say that a number that is completely divisible by 2(that means leaves no remainder) is known as even number. For example, 2, 4, 6, 8, 10, …etc. are even numbers. We can calculate the sum of all the even numbers upto N by adding all the even numbers present in the given list. Below is a demonstration of the same − Input Suppose our given input is − Number ... Read More
454 Views
This tutorial will discuss how to write a Swift program to find the hypotenuse of a right-angled triangle with sides l and b. A triangle in which one angle is equal to 90 degrees and the sum of the other two angles is also 90 degrees then such type of triangle is known as a right-angled triangle. A right-angled triangle has three sides- base, perpendicular, and hypotenuse. We can find the relationship between these three sides using Pythagoras theorem.In a right-angled triangle, the square of the hypotenuse side(also known as the largest side of the triangle) is equal to the ... Read More
283 Views
This tutorial will discuss how to write a Swift program to calculate the area of the rhombus. A rhombus is a closed two-dimensional figure or we can say that a rhombus is a quadrilateral whose all the sides are equal and the diagonals intersect each other at a right angle(that is 90 degrees). The area of the rhombus is known as the total space enclosed inside the boundaries of the rhombus. We can calculate the area of the rhombus using any of the following methods − Area of rhombus using diagonal Area of rhombus using base and height ... Read More
492 Views
This tutorial will discuss how to write a Swift program to find the volume of cube. A cube is a solid three-dimensional shape with six square faces and all the sides of the cube are of equal length(that means Length = Breadth = Width). It is also known as a regular hexahedron. It contains 12 edges and 8 vertices.The total number of cubic units contained by the cube is known as the volume of the cube. To calculate the volume of the cube we find the product of length, height, and width. As we know that length = height = ... Read More
332 Views
This tutorial will discuss how to write a Swift program to find the area of the cube. A cube is solid three dimensional shape with six square faces and all the sides of the cube are of equal length(that means Length = Breadth = Width). It is also known as regular hexahedron.The area of a cube is known as the total space enclosed inside the boundaries of the cube. The area of cube is of two types- Total surface area Lateral surface area Total Surface Area The total area occupied by all the six faces of the cube ... Read More
284 Views
Every component in React has a lifecycle that incorporates several phases. Programmers usually think of this lifecycle as the component’s ‘lifetime’. The components experience the following events: Mounting, Updating, Unmounting, and Error handling. Mounting refers to the procedure of adding nodes and updating requires programmers to alter and change these nodes in the DOM. Unmounting, on the other hand, removes nodes and error handling tracks your code to ensure it works and is bug-free. These occurrences can be compared to a component's birth, development, and eventual demise. You can override multiple lifecycle methods in each React lifecycle phase to execute ... Read More
831 Views
JSX is an extension used to easily create templates in ReactJS, a prominent framework of Javascript. Similar to how Javascript files are saved under the extension .js, React files are saved under the extension. jsx. With JSX, programmers can write HTML code in React and easily render the elements in the React DOM without needing additional methods or functions. What's more? JSX was created with the intention of easily converting HTML elements into React elements. In fact, JSX is beneficial for all sorts of programmers due to the fact that it’s faster than conventional Javascript. Developers can also design UI ... Read More