Articles on Trending Technologies

Technical articles with clear explanations and examples

Example of key frames with left animation using CSS3

mkotla
mkotla
Updated on 15-Mar-2026 204 Views

The CSS @keyframes rule allows you to create smooth animations by defining the intermediate steps between the start and end of an animation. This example demonstrates a left-sliding animation where an element moves from right to left across the screen. Syntax @keyframes animation-name { from { /* starting CSS properties */ } to { /* ending CSS properties */ } } selector { ...

Read More

Program to Convert Centimeter to Feet and Inches in C

Sunidhi Bansal
Sunidhi Bansal
Updated on 15-Mar-2026 2K+ Views

Given with the length in centimeters as an input, the task is to convert the given length into feet and inches using C programming. We can use length conversion formulas for this − 1 feet = 30.48 cm 1 inch = 2.54 cm Syntax double inches = centimeters * 0.3937; double feet = centimeters * 0.0328; Algorithm Start Step 1 → Declare function to perform conversion double convert(int centimeter) set double inch = 0.3937 * centimeter ...

Read More

Define skew transforms along with x axis using CSS

Nikitha N
Nikitha N
Updated on 15-Mar-2026 235 Views

The CSS skewX() transform function distorts an element by skewing it along the x-axis (horizontally). This creates a slanted effect where the element appears tilted to the left or right while maintaining its height. Syntax transform: skewX(angle); Where angle is specified in degrees (deg) or radians (rad). Positive values skew the element to the left, while negative values skew it to the right. Example: Skewing Element Along X-Axis The following example demonstrates how to apply a skew transform along the x-axis − div ...

Read More

Program to Calculate the Perimeter of a Decagon in C program

Sunidhi Bansal
Sunidhi Bansal
Updated on 15-Mar-2026 237 Views

A decagon is a polygon with 10 sides and 10 vertices. In a regular decagon, all sides are equal in length and each internal angle measures 144 degrees. The perimeter of any polygon is the sum of all its side lengths. V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 ...

Read More

Rotate the element based on an angle using CSS

George John
George John
Updated on 15-Mar-2026 316 Views

The CSS transform: rotate() property is used to rotate an element by a specified angle. The rotation is applied around the element's center point by default. Syntax selector { transform: rotate(angle); } Possible Values ValueDescription degDegrees (0deg to 360deg) radRadians (0rad to 6.28rad) turnTurns (0.5turn = 180deg) Example: Basic Element Rotation The following example demonstrates how to rotate an element by 20 degrees − .box { width: 300px; ...

Read More

Program to calculate the Area and Perimeter of Incircle of an Equilateral TrianglenWhat is Equilateral Triangle in C?

Sunidhi Bansal
Sunidhi Bansal
Updated on 15-Mar-2026 291 Views

In C programming, calculating the area and perimeter of an incircle (inscribed circle) of an equilateral triangle involves using specific mathematical formulas. The incircle is the largest circle that can fit inside the triangle, touching all three sides. What is an Equilateral Triangle? An equilateral triangle has three equal sides and three equal interior angles of 60° each. It is also known as a regular triangle because it's a regular polygon. Properties of equilateral triangle are − 3 sides of equal length Interior angles of same degree which is 60° Incircle An ...

Read More

Change the height of element using CSS

varma
varma
Updated on 15-Mar-2026 189 Views

The CSS height property is used to set the height of an element. You can also use the scaleY() transform function to scale the height proportionally without changing the actual height value in the document flow. Syntax /* Using height property */ selector { height: value; } /* Using scaleY() transform */ selector { transform: scaleY(factor); } Method 1: Using Height Property The most direct way to change element height is using the height property − ...

Read More

Program for EMI Calculator in C program

Sunidhi Bansal
Sunidhi Bansal
Updated on 15-Mar-2026 996 Views

EMI (Equated Monthly Installment) is a fixed payment amount made by a borrower to a lender at a specified date each month. An EMI calculator helps determine the monthly payment amount based on the loan principal, interest rate, and tenure. Syntax EMI = (P * R * (1 + R)^T) / (((1 + R)^T) - 1) Where: P − Principal loan amount R − Monthly interest rate (annual rate / 12 / 100) T − Total number of months (years * 12) Example: EMI Calculator Implementation The following program calculates the ...

Read More

Transform the element along with x-axis and y-axis with CSS

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 2K+ Views

The CSS translate() function is used to move an element from its current position along the x-axis and y-axis. This transformation does not affect the document flow, meaning other elements remain in their original positions. Syntax transform: translate(x, y); Where: x − a length value representing the horizontal displacement y − a length value representing the vertical displacement (optional, defaults to 0) Example: Moving Element Along Both Axes The following example demonstrates how to translate an element 30px to the right and 20px down − ...

Read More

Program for n'th node from the end of a Linked List in C program

Sunidhi Bansal
Sunidhi Bansal
Updated on 15-Mar-2026 2K+ Views

In this tutorial, we will learn how to find the nth node from the end of a linked list in C. The program should print the nth node from the last without changing the order of nodes in the linked list. Syntax void findNthFromEnd(struct node* head, int n); Example Input/Output Input − 10 20 30 40 50 60 N = 3 Output − 40 In the above example, the third node from the end is 40. We can visualize this as − ...

Read More
Showing 21321–21330 of 61,297 articles
Advertisements