Articles on Trending Technologies

Technical articles with clear explanations and examples

Check the number is Armstrong or not using C

Mandalika
Mandalika
Updated on 15-Mar-2026 11K+ Views

An Armstrong number (also known as a narcissistic number) is a number that equals the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1³ + 5³ + 3³ = 153. Syntax number = sum of (each digit ^ number_of_digits) Algorithm To check if a number is an Armstrong number − Count the number of digits in the given number Calculate the sum of each digit raised to the power of total digits Compare this sum with the ...

Read More

Formatting Text Using CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 464 Views

To format text in CSS, you can change the text color, text decoration, line height, text direction, text alignment, etc. CSS provides numerous properties to control the visual appearance of text content. Syntax selector { text-align: value; line-height: value; text-decoration: value; } Text Alignment To set text alignment using CSS, use the text-align property. Following are the possible property values − ValueDescription leftAligns text to the left (default) rightAligns text to the right centerCenters the text justifyStretches lines to have ...

Read More

Using iterative function print the given number in reverse order in C language

Mandalika
Mandalika
Updated on 15-Mar-2026 538 Views

In C programming, reversing a number means printing its digits in reverse order. This can be achieved using an iterative approach with a while loop that extracts digits from right to left and builds the reversed number. Syntax int reverse(int number) { int reversed = 0; while (number > 0) { reversed = reversed * 10 + number % 10; number = number / 10; } ...

Read More

The CSS rotate() Function

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 279 Views

The CSS rotate() function is used to rotate an element around a fixed point. It is applied through the transform property and accepts angle values in degrees, radians, or other angle units. Syntax transform: rotate(angle); Possible Values ValueDescription degDegrees (360deg = full rotation) radRadians (2π rad = full rotation) gradGradians (400grad = full rotation) turnTurns (1turn = full rotation) Example: Rotate an Element by 45 Degrees The following example rotates a text element by 45 degrees − .box { ...

Read More

Printing the numbers in reverse order using Division and modulo operators using C

Mandalika
Mandalika
Updated on 15-Mar-2026 1K+ Views

In C programming, we can reverse a number using division and modulo operators without using any predefined functions. This approach extracts individual digits from a number and reconstructs them in reverse order. Syntax int digit = number % 10; // Extract last digit int remaining = number / 10; // Remove last digit How It Works The logic to reverse a number using mathematical operators is − Modulo operator (%): Extracts the last digit of a number Division operator (/): Removes the last digit by integer division Extract digits ...

Read More

Gold Leasing

Praveen Varghese Thomas
Praveen Varghese Thomas
Updated on 15-Mar-2026 589 Views

Gold leasing is a financial arrangement where gold owners lend their precious metal to borrowers (typically jewelers, manufacturers, or financial institutions) for a specified period in exchange for regular interest payments. This practice allows gold holders to generate income from their idle gold assets while retaining ownership rights. How Gold Leasing Works The gold leasing process involves several key participants and steps. Gold owners (leasers) provide their gold to borrowers who need the metal for business operations, such as jewelry manufacturing or trading activities. The borrower pays a predetermined lease rate, typically ranging from 4-5% annually, while the ...

Read More

writing-mode Property in CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 234 Views

The CSS writing-mode property controls the direction in which text flows within an element. It's particularly useful for creating layouts that match different language writing systems or for creating unique design effects. Syntax selector { writing-mode: value; } Possible Values ValueDescription horizontal-tbContent flows horizontally from left to right and vertically from top to bottom (default) vertical-rlContent flows vertically from top to bottom and horizontally from right to left vertical-lrContent flows vertically from top to bottom and horizontally from left to right Example 1: Vertical Writing (Right to ...

Read More

Differentiate the modulo and division by using C Programming language?

Mandalika
Mandalika
Updated on 15-Mar-2026 6K+ Views

In C programming, the modulo and division operators are fundamental arithmetic operators that work with integers but produce different results from the same operands. Modulo (%) − Returns the remainder after integer division. Division (/) − Returns the quotient (whole number result) of integer division. Syntax result = dividend % divisor; // Modulo operation result = dividend / divisor; // Division operation Example 1: Basic Modulo and Division This example demonstrates the difference between modulo and division operators − #include int main() { ...

Read More

Write a C program to perform 3X3 matrix operations

Mandalika
Mandalika
Updated on 15-Mar-2026 3K+ Views

In C, we can perform various operations on a 3x3 matrix such as calculating row sums, column sums, and diagonal sums. This program demonstrates how to read a 3x3 matrix and compute these basic operations. Syntax int matrix[3][3]; // 3x3 matrix declaration // Row sum: matrix[i][0] + matrix[i][1] + matrix[i][2] // Column sum: matrix[0][j] + matrix[1][j] + matrix[2][j] // Main diagonal: matrix[0][0] + matrix[1][1] + matrix[2][2] // Anti-diagonal: matrix[0][2] + matrix[1][1] + matrix[2][0] Algorithm Step 1: Declare a 3x3 matrix Step 2: Read 9 numbers from user Step 3: Store numbers in ...

Read More

ESG Investing

Praveen Varghese Thomas
Praveen Varghese Thomas
Updated on 15-Mar-2026 288 Views

ESG investing refers to an investment approach that considers Environmental, Social, and Governance factors alongside traditional financial metrics when making investment decisions. This sustainable investing strategy allows investors to generate returns while supporting companies that prioritize positive environmental and social impact. Key Concepts ESG investing evaluates three core pillars: Environmental (E) − Climate change mitigation, renewable energy adoption, waste reduction, and sustainable resource management Social (S) − Employee welfare, community relations, diversity and inclusion, and human rights practices Governance (G) − Corporate leadership quality, board diversity, executive compensation, and transparent business practices Companies receive ESG scores ...

Read More
Showing 20601–20610 of 61,299 articles
Advertisements