karthikeya Boyini

karthikeya Boyini

1,421 Articles Published

Articles by karthikeya Boyini

Page 46 of 143

CSS line-height property

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

The CSS line-height property is used to set the height of a line of text. It controls the spacing between lines of text within an element, affecting readability and visual appearance. Syntax selector { line-height: value; } Possible Values ValueDescription normalDefault value, usually around 1.2 times the font size numberA number multiplied by the font size (e.g., 1.5) lengthFixed length in px, em, rem, etc. %Percentage of the font size Example: Setting Line Height The following example demonstrates different line-height values applied to paragraphs − ...

Read More

Set outline style as a solid single line with CSS

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

The CSS outline-style property with the value solid creates a solid single line outline around an element. This outline appears outside the element's border and does not affect the layout or positioning of other elements. Syntax selector { outline-style: solid; } Example The following example shows how to create a solid outline around a paragraph element − .solid-outline { outline-width: 3px; outline-style: solid; ...

Read More

CSS max-width property

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

The CSS max-width property is used to set the maximum width that an element can have. When the content would normally be wider than this value, the element will not exceed the specified maximum width. Syntax selector { max-width: value; } Possible Values ValueDescription lengthDefines the maximum width in px, em, rem, etc. %Defines the maximum width as a percentage of the parent element noneNo maximum width limit (default value) Example The following example demonstrates how max-width constrains an element's width − ...

Read More

Area of Circumcircle of a Right Angled Triangle?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 1K+ Views

The area of circumcircle of a right-angled triangle can be calculated when the hypotenuse (H) of the triangle is given using the formula πH²/4. This formula is derived from the fact that in a right-angled triangle, the hypotenuse is the diameter of the circumcircle. The circumcircle passes through all three vertices of the triangle. For a right-angled triangle, the hypotenuse becomes the diameter because the angle inscribed in a semicircle is always 90°. Since the area of a circle is πr², and diameter d = 2r, we can write the area as πd²/4, where d is replaced by the ...

Read More

Area of circle which is inscribed in an equilateral triangle?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 10K+ Views

The area of a circle inscribed inside an equilateral triangle is found using the mathematical formula πa2/12, where 'a' is the side length of the triangle. Syntax area = π × a² / 12 Formula Derivation Let's see how this formula is derived − Step 1: Find the radius of the inscribed circle using the formula: Radius = Area of triangle / Semi-perimeter of triangle Step 2: For an equilateral triangle with side 'a': Area of triangle = (√3)a2/4 Semi-perimeter = 3a/2 Step 3: Calculate the radius: Radius = ...

Read More

Area of a Circular Sector?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 1K+ Views

A circular sector (also known as a circle sector or sector of a circle) is the portion of a circle that is enclosed between two radii and an arc. To find the area of a circular sector, we need to determine the central angle between the two radii. r θ Sector Syntax Area = π × r² × (θ / 360°) Where: π (pi) ≈ 3.14159 r = radius of ...

Read More

Area of a circle inscribed in a regular hexagon?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 3K+ Views

In C programming, calculating the area of a circle inscribed in a regular hexagon involves understanding the geometric relationship between the hexagon and its inscribed circle. A circle inscribed in a regular hexagon touches all six sides of the hexagon at their midpoints. Syntax area = (3 * π * side * side) / 4 Mathematical Formula For a regular hexagon with side length a, the radius of the inscribed circle is r = a(√3)/2. Using the circle area formula A = πr², we get − ...

Read More

C program to find Decagonal Number?

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

A decagonal number is a figurate number that represents the number of dots that can be arranged in nested decagonal (10-sided) patterns. These numbers follow the formula 4n² - 3n, where n is the position in the sequence. For example, the 3rd decagonal number involves arranging dots in 3 nested decagons. Each nested layer contributes a specific number of dots, and we subtract the overlapping dots to get the final count. Decagonal Number Pattern ...

Read More

Average of even numbers till a given even number?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 3K+ Views

To find the average of even numbers till a given even number, we need to sum all the even numbers up to that number and divide by the count of even numbers. Syntax average = sum_of_even_numbers / count_of_even_numbers Example Average of even numbers till 10 is calculated as − Even numbers: 2, 4, 6, 8, 10 Sum: 2 + 4 + 6 + 8 + 10 = 30 Count: 5 Average: 30 ÷ 5 = 6 There are two methods for calculating the average of even numbers till n (where n is ...

Read More

Average of odd numbers till a given odd number?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 3K+ Views

The average of odd numbers till a given odd number is calculated by finding the sum of all odd numbers from 1 to that number, then dividing by the count of odd numbers. This is a fundamental concept that demonstrates both iterative and mathematical approaches. Syntax Average = Sum of odd numbers / Count of odd numbers Average = (n + 1) / 2 // Formula approach (where n is odd) Example: Manual Calculation For odd numbers till 9: Odd numbers: 1, 3, 5, 7, 9 Sum: 1 + 3 ...

Read More
Showing 451–460 of 1,421 articles
« Prev 1 44 45 46 47 48 143 Next »
Advertisements