Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Working with CSS Display Property
The CSS display property is used to set how an element is displayed on a web page. With this property, you can create grid layouts, flex containers, inline elements, and more. It controls the layout behavior of elements and how they interact with other elements. Syntax selector { display: value; } Possible Values Property Value Description inline Displays an element as an inline element. block Displays an element as a block element. contents Makes the container disappear, making the child elements children ...
Read MoreWrite a C program to find out the largest and smallest number in a series
In C programming, finding the largest and smallest numbers in a series is a fundamental problem that can be solved using conditional statements or arrays. This involves comparing each number with the current maximum and minimum values to determine the extremes. Syntax if (number > max) max = number; if (number < min) min = number; Method 1: Using Four Variables This approach reads four numbers from the user and compares them to find the largest and smallest − #include int main() ...
Read MoreDividend Stripping
Dividend stripping is an investment strategy where investors purchase shares of a company just before it pays dividends and sell them shortly after receiving the dividend payment. This short-term trading technique aims to capture dividend income without holding the stock for extended periods, though it carries significant risks and tax implications. How Dividend Stripping Works The dividend stripping process follows a simple timeline: Purchase shares − Buy shares before the ex-dividend date (the cutoff date to be eligible for dividends) Receive dividend − Collect the dividend payment on ...
Read MoreWrite a C program for time conversions using if and elseif statements
In this tutorial, we will learn how to convert time from 24-hour format (also known as military time) to 12-hour format using C programming with if and else if statements. The 24-hour format uses hours from 00 to 23, while the 12-hour format uses hours from 1 to 12 with AM/PM indicators. Syntax if (condition1) { // statements } else if (condition2) { // statements } else { // statements } Algorithm Start: Step 1: Enter time in 24 hr format ...
Read MoreText Transformation using CSS
The CSS text-transform property is used to control the capitalization of text content. You can transform text to uppercase, lowercase, capitalize the first letter of each word, or leave it unchanged. Syntax selector { text-transform: value; } Possible Values ValueDescription noneNo transformation (default) capitalizeCapitalizes the first letter of each word uppercaseTransforms all text to uppercase lowercaseTransforms all text to lowercase initialSets to default value inheritInherits from parent element Example 1: Uppercase Transformation The following example transforms all text to uppercase − ...
Read MoreHow to print the stars in Diamond pattern using C language?
In C programming, printing a diamond pattern with stars is a common pattern printing problem that helps understand nested loops and spacing logic. A diamond pattern consists of an upper triangular half followed by a lower triangular half. Syntax // Upper half pattern for (j = 1; j
Read MoreThe CSS3 scale3d() Function
The CSS3 scale3d() function is used to scale an element in 3D space along the X, Y, and Z axes. This transform function allows you to resize elements while maintaining their proportions or creating unique scaling effects. Syntax transform: scale3d(x, y, z); Parameters ParameterDescription xScaling factor for the X-axis (horizontal) yScaling factor for the Y-axis (vertical) zScaling factor for the Z-axis (depth) Note: Values greater than 1 increase size, values less than 1 decrease size, and negative values flip the element. Example: Basic 3D Scaling The following example demonstrates ...
Read MoreCoupon Bond
Coupon bonds are fixed-income securities that pay regular interest payments to bondholders through periodic coupon payments. They are debt instruments issued by corporations, governments, and municipalities to raise capital, providing investors with predictable income streams until maturity. Formula The present value (price) of a coupon bond is calculated using the following formula: $$\mathrm{PV = \frac{C_1}{(1+r)^1} + \frac{C_2}{(1+r)^2} + ... + \frac{C_n}{(1+r)^n} + \frac{FV}{(1+r)^n}}$$ Where: PV − Present value (price) of the bond C − Coupon payment r − Market interest rate (discount rate) FV − Face value of the bond n − Number of periods ...
Read MoreHow to calculate transpose of a matrix using C program?
The transpose of a matrix is obtained by converting rows to columns and columns to rows. If A is an original matrix and B is its transpose, then element at position A[i][j] becomes B[j][i]. Syntax for (i = 0; i < rows; i++) for (j = 0; j < cols; j++) transpose[j][i] = matrix[i][j]; Example 1: Dynamic Input Matrix This example reads matrix dimensions and elements from user input − #include int main() { ...
Read Moretext-justify Property in CSS
The CSS text-justify property controls how justified text is aligned when text-align is set to justify. It determines the method used to distribute space between words or characters to achieve full justification. Syntax selector { text-justify: value; } Possible Values ValueDescription autoBrowser determines the best justification method inter-wordAdjusts spacing between words inter-characterAdjusts spacing between characters noneDisables justification Example 1: Inter-word Justification The following example uses inter-word to justify text by adjusting space between words − .inter-word-example ...
Read More