Nishu Kumari has Published 83 Articles

C++ Program to Find the Frequency of a Character in a String

Nishu Kumari

Nishu Kumari

Updated on 22-May-2025 19:15:12

18K+ Views

A string is a sequence of characters like letters, numbers, symbols, or anything enclosed in double quotes (e.g., "Hello"). Our goal is to find the frequency of a character in a given string, which means counting how many times that specific character appears in the string. Let's look at ... Read More

C++ Program to Find the Length of a String

Nishu Kumari

Nishu Kumari

Updated on 22-May-2025 19:14:47

3K+ Views

In this article, we will show you how to find the length of a string in C++. A string in C++ is a sequence of characters, such as letters, numbers, symbols, or anything enclosed in double quotes (e.g., "Hello"). To find the length of a string, we count all ... Read More

C++ Program to Concatenate Two Strings

Nishu Kumari

Nishu Kumari

Updated on 22-May-2025 19:14:17

1K+ Views

In this article, we'll show how to write a C++ program to concatenate two strings. A string in C++ is a sequence of characters like letters, numbers, symbols, or anything enclosed in double quotes (e.g., "Hello"). Concatenating two strings means joining them together to form one combined string. For ... Read More

C++ Program to Solve any Linear Equation in One Variable

Nishu Kumari

Nishu Kumari

Updated on 22-May-2025 19:13:53

6K+ Views

Any linear equation in one variable has the form aX + b = cX + d. Here the value of X is to be found, when the values of a, b, c, d are given. Let's understand this with an example: //Example 1 If the input equation is 2X ... Read More

C++ Program to Convert Binary Number to Octal and vice-versa

Nishu Kumari

Nishu Kumari

Updated on 21-May-2025 09:48:14

955 Views

In a computer system, the binary number is expressed in the binary numeral system while the octal number is in the octal numeral system. The binary number is in base 2 while the octal number is in base 8. Examples of binary numbers and their corresponding octal numbers are ... Read More

C++ Program to Perform Preorder Non-Recursive Traversal of a Given Binary Tree

Nishu Kumari

Nishu Kumari

Updated on 21-May-2025 09:47:28

1K+ Views

Tree traversal is a form of graph traversal. It involves checking or printing each node in the tree exactly once. The preorder traversal of a binary search tree involves visiting each of the nodes in the tree in the order (Root, Left, Right). An example of Preorder traversal ... Read More

C++ Program to Calculate Standard Deviation

Nishu Kumari

Nishu Kumari

Updated on 21-May-2025 09:46:51

8K+ Views

Standard deviation is a measure of how spread out the numbers in a dataset are. It is the square root of the variance, where variance is the average of the squared differences from the mean. In this article, we will show you how to calculate the standard deviation in C++. ... Read More

C++ Program to Compute Determinant of a Matrix

Nishu Kumari

Nishu Kumari

Updated on 20-May-2025 20:11:00

11K+ Views

The determinant of a square matrix can be computed using its element values. The determinant of a matrix A can be denoted as det(A) and it can be called the scaling factor of the linear transformation described by the matrix in geometry. An example of the determinant of a ... Read More

C++ Program to Check Multiplicability of Two Matrices

Nishu Kumari

Nishu Kumari

Updated on 20-May-2025 20:10:38

343 Views

Two matrices are said to be multiplicable if they can be multiplied. This is only possible when the number of columns of the first matrix is equal to the number of rows of the second matrix. Our goal is to check whether the given matrices are multiplicable or not ... Read More

C++ Program to convert Decimal Numbers to Octal

Nishu Kumari

Nishu Kumari

Updated on 20-May-2025 20:09:56

1K+ Views

In a computer system, the octal number is expressed in the octal numeral system while the decimal number is in the decimal numeral system. The octal number is in base 8 while the decimal number is in base 10. In this article, we will write a C++ program that ... Read More

1 2 3 4 5 ... 9 Next
Advertisements