# C-Plus-Plus-Programs

## How to iterate elements of array in C++

In this article, we will learn How to iterate elements of array in C++. We will iterate on a C++ array and print each element in that array. How to read and print elements of an array in C++ Output

## How to Find sum of each row and column of matrix in C++

In this article, we are going to learn about How to Find sum of each row and column of matrix in C++. We will take the input from the user for the matrix elements and then we will perform the addition of elements on the matrix rows and columns. In this example, we are going …

## How to interchange diagonal elements of a matrix in C++

In this article, we are going to learn about How to interchange diagonal elements of a matrix in C++We will take the input from the user for the matrix elements, and then we will perform the switch on the diagonal elements of a matrix. In this example, we are going to interchange diagonal elements of …

## How to Find Transpose of a Matrix in C++

We are going to learn about How to Find Transpose of a Matrix in C++. We will take the input from the user for the matrix elements and then perform the Transpose operation on the matrix. 1. How to Find Transpose of a Matrix in C++ In this example, we are going to do the …

## How to Multiply Two Matrices in C++

In this article, we are going to learn about how to multiply two matrices in C++. We will take the input from the user for both the matrices and then perform the multiply operation on both the matrices. Multiplication of Two Fix size Matrix In this example, we will multiply two matrices of size n …

## How to swap two numbers using pointers in C++

In this article, we are going to learn How to swap two numbers using pointers in C++. We will learn how to swap two numbers in C++ using the pointers. Output

## How to Find Odd & Even Numbers in Matrix C++

In this article, we are going to learn about How to Find Odd & Even Numbers in Matrix C++. We will take the input from the user for the matrix elements and then we will perform the search of Odd & Even Numbers in the given Matrix. How to Find Odd & Even Numbers in …

## How to check two matrices are equal or not in C++

In this article, we are going to learn about How to check two matrices are equal or not in C++. We will take the input from the user for both the matrices and then we will perform the comparison operation on both the matrices. Comparison of Two Fix size Matrix in C++ In this example, …

## How to find factorial of a number in C++(3 ways)

In this article, we are going to learn about How to find factorial of a number in C++. Before we jump into the code, let us quickly understand What is Factorial of a Number? The Factorial of a given number is the product of a given series of consecutive whole numbers starting with 1 and …

## C++ Programs to swap two numbers

In this article, we are going to learn how to swap two numbers in C++. We will take input from the user as two numbers and then we will swap these two numbers. This means if variable a holds a value x and variable b holds y value, after swapping a will hold value y …