Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
C Program for Area And Perimeter Of Rectangle
Given a length and breadth of a rectangle we have to find its area and perimeter. Rectangle is a 2-D figure containing four sides and four angles of 90 degrees each. All the sides of rectangle are not equal − only the opposite sides of a rectangle are equal. The diagonals in a rectangle also are of the same length. Syntax Area = Length × Breadth Perimeter = 2 × (Length + Breadth) Algorithm Length Breadth ...
Read MoreC Program for n-th odd number
Given a number N, we have to find the N-th odd number. Odd numbers are the numbers which are not completely divisible by 2 and their remainder is not zero, like 1, 3, 5, 7, 9, etc. If we closely observe the sequence of odd numbers, we can represent them mathematically as − 1st odd number: (2*1)-1 = 1 2nd odd number: (2*2)-1 = 3 3rd odd number: (2*3)-1 = 5 4th odd number: (2*4)-1 = 7 ... Nth odd number: (2*N)-1 So, to solve the problem we can simply multiply the number ...
Read MoreCSS3 Multi-Column column-gap Property
The CSS column-gap property is used to specify the gap (spacing) between columns in a multi-column layout. This property helps control the visual separation between columns, making text more readable and organized. Syntax selector { column-gap: value; } Possible Values ValueDescription normalDefault value (usually 1em) lengthDefines the gap using px, em, rem, etc. %Percentage of the container width Example The following example demonstrates how to use the column-gap property to create a 40px gap between columns − ...
Read MoreC Program for n-th even number
Given a number N we have to find the N-th even number. Even numbers are the numbers which are completely divided by 2 and their remainder is zero. Like 2, 4, 6, 8, 10, and so on. If we closely observe the list of even numbers we can also represent them as − 2*1=2, 2*2=4, 2*3=6, 2*4=8, ….2*N. So, to solve the problem we can simply multiply the number N with 2, so the result will be the number which is divisible by 2, i.e. the even number. Syntax nth_even_number = n * ...
Read MoreCSS3 Multi-Column column-rule Property
The CSS3 column-rule property is used to add a dividing line between columns in multi-column layouts. It acts as a shorthand for setting the width, style, and color of the rule that appears between columns. Syntax selector { column-rule: width style color; } The column-rule property is a shorthand for: column-rule-width − Sets the width of the rule column-rule-style − Sets the style of the rule (solid, dashed, dotted, etc.) column-rule-color − Sets the color of the rule Example: Basic Column Rule The following example creates ...
Read MoreProgram to Convert Radian to Degree in C
Converting radians to degrees is a common mathematical operation in C programming. A radian is the standard unit for measuring angles in mathematics, while degrees are commonly used in everyday applications. The complete angle of a circle is 360 degrees or 2π radians. Syntax degree = radian × (180 / π) Where π (pi) ≈ 3.14159 or can be approximated as 22/7. Conversion Formula The mathematical relationship between radians and degrees is − degree = radian × (180/π) where, π = 3.14159 For example, if radian = 9.0, then ...
Read MoreCSS3 Multi-Column Property
CSS3 multi-column properties allow you to arrange text in a newspaper-style layout with multiple columns. This feature is useful for creating magazine-style layouts and improving text readability in wide containers. Syntax selector { column-count: number; column-gap: length; column-rule: width style color; column-span: value; } Multi-Column Properties PropertyDescription column-countSpecifies the number of columns to divide content into column-gapSets the gap between columns column-ruleShorthand for setting column rule width, style, and color column-rule-widthSpecifies the width of the rule between ...
Read MoreC Program to Minimum and Maximum prime numbers in an array
In C programming, finding the minimum and maximum prime numbers in an array requires two key steps: identifying prime numbers efficiently and tracking the smallest and largest primes found. This problem uses the Sieve of Eratosthenes algorithm for efficient prime number generation. Problem Statement Given an array of n positive integers, we need to find the prime numbers with minimum and maximum values. If the given array is − arr[] = {10, 4, 1, 12, 13, 7, 6, 2, 27, 33} then minimum prime number is 2 and maximum prime number is 13 ...
Read MoreMoving left animation with keyframes using CSS3
CSS keyframes allow you to create smooth animations by defining specific styles at different points during the animation sequence. The following example demonstrates how to create a moving left animation where text slides in from the right side of the screen. Syntax @keyframes animation-name { from { /* starting styles */ } to { /* ending styles */ } } /* Or with percentages */ @keyframes animation-name { 0% { /* starting styles */ } 50% { /* middle styles ...
Read MoreProgram for Identity Matrix in C
Given a square matrix M[r][c] where 'r' is some number of rows and 'c' are columns such that r = c, we have to check that 'M' is identity matrix or not. Identity Matrix Identity matrix is also known as Unit matrix of size nxn square matrix where diagonal elements will only have integer value one and non diagonal elements will only have integer value as 0. Like in the given Example below − I₁ = [1] I₂ = ...
Read More