C++ Program to Multiply two Numbers

In this tutorial, we will write a C++ program to calculate the multiplication of two numbers. You may go through the following topics in C++ before writing a C++ program to find a product of two numbers. C++ Arithmetic Operator It is a simple program that takes two numbers from the user as input and … Read more

C++ Program to Find Quotient and Remainder

In this tutorial, we will write a C++ program to find the quotient and remainder of a given dividend and divisor. The program asked the user to enter the numbers (divisor and dividend). And to compute and find the quotient and remainder, we will use the division(/) and modulus(%) operators. C++ Operators C++ Program to … Read more

C++ Program to Add Two Numbers

In this tutorial, we will write a C++ program for the addition of two numbers. We can add the integers, floats, double, etc using the same program just changing the type. The program takes the user inputs for the number to be added then displays the result. We will see to add two numbers in … Read more

Print Count Down Timer in C++

In this tutorial, we will learn how to create a count down timer program in C++. To understand better, you may go through the following first. C++ Loops The program takes the value to start the countdown and then reverse the countdown from there. The while loop is used to reverse the entered value. Print … Read more

C++ Program to Subtract Two Matrices

In this tutorial, we will learn and write a C++ program to print the subtraction of two matrices. To understand the coding, you should have knowledge of the following topics in C++ programming: C++ Arrays C++ loops The program takes the user input for the number of rows and columns and then the elements for … Read more

C++ Program to Find Smallest Element in an Array

In this tutorial, we will learn and write a print the smallest element in an array in C++. To understand the coding, you should have knowledge of the following topics in C++ programming: C++ Arrays C++ loops 1. C++ program to find the smallest element in an array The program takes user input for the … Read more

C++ Program to Find Largest Number in an Array

In this tutorial, we will learn and write a print the largest element in an array in C++. To understand the coding, you should have knowledge of the following topics in C++ programming: C++ Arrays C++ loops 1. C++ program to find the largest element in an array The program takes user input for the … Read more

C++ Program to Find if an Array is an Identity Matrix

In this tutorial, we will learn and write a C++ program to check whether a given matrix is an identity matrix or not. To understand the coding, you should have knowledge of the following topics in C++ programming: C++ Arrays C++ loops Identity Matrix: A square matrix is said to be an identity matrix if … Read more

C++ Program to Insert an Element in an Array

In this tutorial, we will learn and write a program to insert an element in an array in C++. To understand the coding, you should have knowledge of the following topics in C++ programming: C++ Arrays C++ loops We will learn two ways to insert an element in an array in C++: Insert an element … Read more

C++ Program to Delete an Element from an Array

In this tutorial, we will learn and write code on deleting an element from an array in C++. To understand the coding, you should have knowledge of the following topics in C++ programming: C++ Arrays C++ loops Delete Element from Array in C++ The program takes user input for the size of an array and … Read more