Articles on Trending Technologies

Technical articles with clear explanations and examples

Program to print pyramid pattern in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 4K+ Views

A pyramid pattern is a triangular arrangement of characters (usually stars or numbers) where each row has an increasing number of elements, creating a pyramid-like shape. This is a fundamental pattern printing problem in C programming. * * * * * * * * * * * * * * * Pyramid Pattern (5 rows) Syntax for(row = 1; row

Read More

What are CSS Transitions?

varun
varun
Updated on 15-Mar-2026 213 Views

CSS transitions allow you to smoothly animate changes to CSS properties over a specified duration. Instead of property changes happening instantly, transitions create a gradual change effect that enhances user experience. Syntax selector { transition: property duration timing-function delay; } Transition Properties PropertyDescriptionExample Value transition-propertySpecifies which CSS property to animatewidth, height, all transition-durationSets how long the transition takes2s, 500ms transition-timing-functionControls the speed curveease, linear transition-delayDelays the start of transition1s, 200ms Example: Height Transition The following example demonstrates a smooth height transition when hovering over an element ...

Read More

Program to print pentatope numbers upto Nth term in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 318 Views

A pentatope number is a figurate number that represents the number of points in a pentatope (4-dimensional simplex). These numbers form the fifth diagonal of Pascal's triangle. The nth pentatope number represents the number of ways to choose 4 items from n+3 items. Syntax pentatope(n) = n * (n + 1) * (n + 2) * (n + 3) / 24 Mathematical Formula The formula for the nth pentatope number is − pentatope(n) = C(n+3, 4) = n * (n + 1) * (n + 2) * (n + 3) / 24 ...

Read More

CSS backface-visibility Property

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

The CSS backface-visibility property determines whether an element should be visible when it is rotated away from the user and its back face is showing. This property is particularly useful in 3D transformations and animations. Syntax selector { backface-visibility: visible | hidden; } Possible Values ValueDescription visibleThe back face is visible when turned towards the user (default) hiddenThe back face is hidden when turned towards the user Example 1: Visible Backface The following example shows an element with backface-visibility set to visible − ...

Read More

Program to print numbers columns wise in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 2K+ Views

In C programming, we can create patterns where natural numbers are arranged column-wise in a triangular format. This pattern displays numbers in columns, where each row contains one more number than the previous row. Pattern Description The pattern arranges numbers as follows − 1 2 6 3 7 10 4 8 11 13 5 9 12 14 15 Each number is placed based on its column position, creating a triangular arrangement where numbers flow vertically in columns. Algorithm The algorithm uses the following approach − i represents the current row ...

Read More

How to select elements with a specified attribute and value with CSS

Nitya Raut
Nitya Raut
Updated on 15-Mar-2026 324 Views

The CSS [attribute="value"] selector is used to select elements that have a specific attribute with an exact matching value. This attribute selector is particularly useful for targeting elements based on their HTML attributes like rel, type, class, or custom data attributes. Syntax element[attribute="value"] { /* CSS properties */ } Example: Selecting Links with Specific rel Attribute The following example demonstrates how to select and style anchor elements that have a rel attribute with the value "nofollow" − ...

Read More

Program to print number pattern in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 2K+ Views

Numerical patterns in C programming involve printing sequences of numbers arranged in specific shapes or structures. These patterns follow mathematical rules and are excellent for practicing nested loops and logical thinking. Syntax for(i = start; condition; increment/decrement) { for(j = start; condition; increment/decrement) { printf("format", value); } printf(""); } Example 1: Triangular Number Pattern This pattern displays numbers in a triangular format where each row contains specific values based on a mathematical formula − #include int main() { int i, j, k; printf("Triangular Number Pattern:"); for(i = 1; i

Read More

Net National Product

Bitopi Kaashyap
Bitopi Kaashyap
Updated on 15-Mar-2026 382 Views

Net National Product (NNP) is the total market value of all finished goods and services produced by a nation's citizens (both domestic and overseas) minus depreciation. It is a key indicator of economic growth because it accounts for the wear and tear of assets used in production. Formula $$\mathrm{NNP = GNP - Depreciation}$$ Or equivalently − $$\mathrm{NNP = MVFG + MVFS - Depreciation}$$ Where MVFG = market value of finished goods, MVFS = market value of finished services, and Depreciation = capital consumption allowance (CCA). Example Calculation If Country X produces $2 trillion ...

Read More

How to select elements with a specified attribute with CSS

Giri Raju
Giri Raju
Updated on 15-Mar-2026 274 Views

CSS attribute selectors allow you to target HTML elements that contain a specific attribute, regardless of the attribute's value. The [attribute] selector is used to select all elements that have the specified attribute present. Syntax [attribute] { /* styles */ } Example: Selecting Images with Alt Attribute The following example applies an orange border to all elements that have an alt attribute − img[alt] { border: 3px solid orange; ...

Read More

Print the Non Square Numbers in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 7K+ Views

In C programming, a perfect square is an integer that is the square of another integer. For example, 1, 4, 9, 16, 25 are perfect squares because they equal 1², 2², 3², 4², 5² respectively. Non-square numbers are all other positive integers that are not perfect squares. Syntax #include int sqrt(double x); // Returns square root of x Perfect Square Numbers The first few perfect squares are − 1, 4, 9, 16, 25, 36, 49, 64, 81, 100 These correspond to − 1² = 1, 2² ...

Read More
Showing 21111–21120 of 61,297 articles
Advertisements