Articles on Trending Technologies

Technical articles with clear explanations and examples

C Program for simple interest?

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 775 Views

Simple Interest is the product of principal amount, rate of interest and the time duration (in years) divided by 100. It is a straightforward method to calculate the interest earned or paid on a loan or investment. Syntax Simple Interest = (Principal × Rate × Time) / 100 Where: Principal − The initial amount of money Rate − The interest rate per year (in percentage) Time − The time period (in years) Example Let's calculate simple interest with principal = 5000, rate = 4%, and time = 5 years − ...

Read More

CSS outline-color property

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 128 Views

The CSS outline-color property is used to specify the color of an element's outline. It accepts color values in various formats including color names, hex codes, RGB values, and HSL values. Syntax selector { outline-color: color; } Possible Values ValueDescription color nameStandard color names like red, blue, green hexHexadecimal color values like #FF0000 rgb()RGB color values like rgb(255, 0, 0) hsl()HSL color values like hsl(0, 100%, 50%) invertPerforms a color inversion of the background Example: Blue Outline Color The following example demonstrates how to apply a ...

Read More

Area of a leaf inside a square in C Program?

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 428 Views

To find the area of a leaf inside a square, we need to split it into parts and find the area of each part, then add the areas together. The leaf shape is formed by the intersection of two quarter circles within a square. Syntax area = a * a * (PI / 2 - 1); Where a is the side length of the square and PI is approximately 3.14159265. Mathematical Approach To calculate the area, we split the leaf into two identical parts. For one part (AECA), we find the area of ...

Read More

CSS outline-style property

Samual Sam
Samual Sam
Updated on 15-Mar-2026 333 Views

The CSS outline-style property specifies the style for the line that goes around an element's border. Unlike borders, outlines don't take up space and don't affect the element's layout. Syntax selector { outline-style: value; } Possible Values ValueDescription noneNo outline (default value) solidOutline is a single solid line dottedOutline is a series of dots dashedOutline is a series of short lines doubleOutline is two solid lines grooveOutline appears carved into the page ridgeOutline appears raised from the page insetOutline makes the element look embedded outsetOutline makes the element look ...

Read More

Usage of :link pseudo-class in CSS

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 121 Views

The :link pseudo-class is used to add special style to an unvisited link. This pseudo-class targets anchor elements that have an href attribute and have not been visited by the user yet. Syntax a:link { property: value; } Possible Values You can apply any CSS property to :link, but commonly used properties include: PropertyDescription colorSets the text color of the unvisited link text-decorationControls underlining, overlining, or strike-through background-colorSets the background color of the link font-weightControls the thickness of the link text Example: Basic Link Styling ...

Read More

Area of largest Circle inscribed in N-sided Regular polygon in C Program?

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 285 Views

In geometry, finding the area of the largest circle inscribed in an N-sided regular polygon is a common problem. The inscribed circle (incircle) is the largest circle that fits entirely inside the polygon, touching all sides. Syntax r = a / (2 * tan(π / n)) Area = π * r² Where: r is the radius of the inscribed circle a is the side length of the polygon n is the number of sides Mathematical Derivation A regular N-sided polygon can be divided into N equal triangles from the center. Each ...

Read More

What are CSS pseudo-classes

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 126 Views

CSS pseudo-classes are used to add special effects to some selectors. You do not need to use JavaScript or any other script to use those effects. They allow you to style elements based on their state, position, or user interaction. Syntax selector:pseudo-class { property: value; } Common Pseudo-classes The most commonly used pseudo-classes are − ValueDescription :linkUse this class to add special style to an unvisited link. :visitedUse this class to add special style to a visited link. :hoverUse this class to add special style to an element ...

Read More

Area of Incircle of a Right Angled Triangle in C Program?

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 2K+ Views

To find the area of the incircle (inscribed circle) of a right angled triangle, we use the formula for the inradius and then calculate the area. The inradius r of a right angled triangle is given by r = (P + B − H) / 2, where P is the perpendicular, B is the base, and H is the hypotenuse. The area of a circle is given by Area = π*r2, where π = 3.14159 and r is the radius of the circle. Base (B) Height (P) ...

Read More

Using CSS z-index property

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 209 Views

The CSS z-index property is used along with the position property to create an effect of layers. You can specify which element should come on top and which element should come at the bottom. Syntax selector { z-index: value; } Possible Values ValueDescription autoDefault value. Stack order is inherited from parent integerSets the stack order (higher values appear on top) Example: Layering Elements The following example demonstrates how to use z-index to control which element appears on top − ...

Read More

Print the string after the specified character has occurred given no. of times in C Program

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

In C programming, we often need to extract a substring after a specific character has occurred a certain number of times. This task involves scanning through a string and printing all characters after the nth occurrence of a specified character. Syntax for (i = 0; i < string_length; i++) { if (count > 0) { if (string[i] == target_char) { count--; } ...

Read More
Showing 21601–21610 of 61,297 articles
Advertisements