Articles on Trending Technologies

Technical articles with clear explanations and examples

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

Mandalika
Mandalika
Updated on 15-Mar-2026 462 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 185 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 431 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 130 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 2K+ 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 225 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

Setting Text Color using CSS

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 642 Views

The CSS color property is used to set the text color of HTML elements. You can specify colors using various formats including color names, hexadecimal values, RGB values, or HSL values. Syntax selector { color: value; } Possible Values Value TypeDescriptionExample Color NamePredefined color namesred, blue, green Hexadecimal6-digit hex code#FF0000, #00FF00 RGBRed, Green, Blue valuesrgb(255, 0, 0) HSLHue, Saturation, Lightnesshsl(0, 100%, 50%) Example: Using Color Names This example demonstrates setting text color using predefined color names − ...

Read More

Write a C program of library management system using switch case

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

A library management system in C allows you to store and manage book information efficiently. This program uses a structure to store book details and implements a menu-driven interface using switch-case statements for different operations. Syntax struct library { char bookname[50]; char author[50]; int noofpages; float price; }; Algorithm Step 1: Declare a structure to hold book data members Step 2: Declare variables for loop control and book counting Step 3: Use switch case to handle different ...

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